Updated tutorial to allow authentication against ldap provider using <ldap /> namespace element.

This commit is contained in:
Luke Taylor 2007-12-14 19:18:18 +00:00
parent d90ff50686
commit 2e4773525b
2 changed files with 87 additions and 27 deletions

View File

@ -52,6 +52,33 @@
<version>1.0.6</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-core</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-server-jndi</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.4.3</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.ldap</groupId>
<artifactId>spring-ldap</artifactId>
<version>1.2.1</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>

View File

@ -0,0 +1,33 @@
dn: ou=groups,dc=springframework,dc=org
objectclass: top
objectclass: organizationalUnit
ou: groups
dn: ou=people,dc=springframework,dc=org
objectclass: top
objectclass: organizationalUnit
ou: people
dn: uid=rod,ou=people,dc=springframework,dc=org
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Rod Johnson
sn: Johnson
uid: rod
userPassword: koala
dn: cn=users,ou=groups,dc=springframework,dc=org
objectclass: top
objectclass: groupOfNames
cn: users
ou: user
member: uid=rod,ou=people,dc=springframework,dc=org
dn: cn=supervisors,ou=groups,dc=springframework,dc=org
objectclass: top
objectclass: groupOfNames
cn: supervisors
ou: supervisor
member: uid=rod,ou=people,dc=springframework,dc=org