Skip to content

Configuration Examples

migmedia edited this page Oct 31, 2013 · 2 revisions

Just auth a valid-user.

ldap_server test1 {
  url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person);
  binddn "TEST\\LDAPUSER";
  binddn_passwd LDAPPASSWORD;
  group_attribute uniquemember;
  group_attribute_is_dn on;
  require valid_user;
}

Auth a group-membership

ldap_server test1 {
  url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person);
  binddn "TEST\\LDAPUSER";
  binddn_passwd LDAPPASSWORD;
  group_attribute member;
  group_attribute_is_dn on;
  require group 'CN=group,DC=test,DC=local';
  require valid_user;
}

Auth a group-membership

ldap_server test1 {
  url ldap://192.168.0.1:3268/DC=test,DC=local?sAMAccountName?sub?(objectClass=person);
  binddn "TEST\\LDAPUSER";
  binddn_passwd LDAPPASSWORD;
  group_attribute member;
  group_attribute_is_dn on;
  require group 'CN=group,DC=test,DC=local';
  require valid_user;
}
Clone this wiki locally