Skip to content
Browse files

Added contrib directory and a community example for AD

  • Loading branch information...
1 parent 95f2ff2 commit d4f7edbf197ed790ac31ad635a59d1665ed25be9 @jblaine committed
Showing with 50 additions and 0 deletions.
  1. +50 −0 contrib/ActiveDirectory1
View
50 contrib/ActiveDirectory1
@@ -0,0 +1,50 @@
+#
+# ActiveDirectory example from the community circa 2/15/2012
+#
+
+Set($ExternalAuthPriority, ['My_LDAP']
+);
+Set($ExternalInfoPriority, ['My_LDAP']
+);
+Set($ExternalServiceUsesSSLorTLS, 0);
+Set($AutoCreateNonExternalUsers, 0);
+Set($ExternalSettings, {
+ 'My_LDAP' => {
+ 'type' => 'ldap',
+ 'server' => 'dc.internal.example.com',
+ 'user' => 'someuser',
+ 'pass' => 'someuserpassword',
+ 'base' => 'dc=example,dc=com',
+ 'filter' => '(objectClass=*)',
@tsibley
tsibley added a note

Often you want an objectClass=person or objectClass=user.

@jblaine Owner
jblaine added a note

Could be. I'm just trying to seed some examples from live/working setups. I got this one from an rt-users community member.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ 'd_filter' => '(objectClass=FooBarBaz)',
@tsibley
tsibley added a note

There is a standard d_filter that works with the normal AD disabled field.

@jblaine Owner
jblaine added a note

Could be. I'm just trying to seed some examples from live/working setups. I got this one from an rt-users community member.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ 'tls' => 0,
+ 'ssl_version' => 3,
+ 'net_ldap_args' => [ version => 3, port => 3268 ],
+ #'group' => 'GROUP_NAME',
+ #'group_attr' => 'GROUP_ATTR',
+ 'attr_match_list' => [
+ 'Name',
+ 'EmailAddress',
+ 'RealName',
+ 'WorkPhone',
+ 'Address2'
+ ],
+ 'attr_map' => {
+ 'Name' => 'sAMAccountName',
+ 'EmailAddress' => 'mail',
+ 'Organization' => 'physicalDeliveryOfficeName',
+ 'RealName' => 'cn',
+ 'ExternalAuthId' => 'sAMAccountName',
+ 'Gecos' => 'sAMAccountName',
+ 'WorkPhone' => 'telephoneNumber',
+ 'Address1' => 'streetAddress',
+ 'City' => 'l',
+ 'State' => 'st',
+ 'Zip' => 'postalCode',
+ 'Country' => 'co'
+ }
+ }, # END My_LDAP
+} # END ExternalSettings hash
+); # END Set()
+
+1;

0 comments on commit d4f7edb

Please sign in to comment.
Something went wrong with that request. Please try again.