[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: authentication using openldap



Paul,
Try ldapsearch -x -b 'dc=myserver,dc=com'
'(objectclass=*)'. Also, I think you are trying to use
your system root account as your ldap manager account,
which I think is incorrect, the ldap Manager account
is usually defined in slapd.conf. I attached a simple
setup below, alot of which I got from the jakarta
tomcat setup.
Ryan

##slapd.conf ENTRIES###
database        ldbm
suffix          "dc=myserver, dc=com"
rootdn          "cn=Manager, dc=myserver, dc=com"
# Use of strong authentication encouraged.
rootpw          whatever

###COMMANDS###
ldapadd -x -D "cn=Manager,dc=myserver,dc=com" -W -f
tomcat-user.ldif

ldapsearch -x -b 'dc=myserver,dc=com'
'(objectclass=*)'

###tomcat-user.ldif file###
# Define a user named 'tomcat'
dn: cn=tomcat,dc=myserver,dc=com
cn: tomcat
userPassword: tomcat
sn: Tomcat User
objectClass: person



# Define a user named 'role1'
dn: cn=role1,dc=myserver,dc=com
cn: role1
userPassword: tomcat
sn: Role1 User
objectClass: person



# Define a user named 'both'
dn: cn=both,dc=myserver,dc=com
cn: both
userPassword: tomcat
sn: Both User
objectClass: person



# Define an entry to base role searches on
dn: dc=roles,dc=myserver,dc=com
cn: roles
objectClass: person
sn: Roles Entry



# Define all members of the 'tomcat' role
dn: cn=tomcat,dc=roles,dc=myserver,dc=com
cn: tomcat
objectClass: groupOfUniqueNames
uniqueMember: cn=tomcat,dc=myserver,dc=com
uniqueMember: cn=both,dc=myserver,dc=com



# Define all members of the 'role1' role
dn: cn=role1,dc=roles,dc=myserver,dc=com
cn: role1
objectClass: groupOfUniqueNames
uniqueMember: cn=role1,dc=myserver,dc=com
uniqueMember: cn=both,dc=myserver,dc=com


--- Paul Cusmin <qat@email.ro> wrote:
>  Can anyone help me please with this isssue: ?
> I'm trying to get my Mandrake 8.2 box authenticate
> using Openldap (installed
> on the same computer).
> I've tryed using the tutorial written by David Elson
> (www.saas.nsw.edu.au/solutions/ldap-auth1.html  and 
> www.saas.nsw.edu.au/solutions/ldap-auth2.html). Even
> if the tutorial was
> intended for RedHat 7.1, I managed to apply what is
> written there, but I 
> got stuck when I tryed to bind to ldap with
> authentication 
> (ldapsearch -x -D 'uid=root,
> ou=People,o=MyCompany,c=AU' -W 'uid=root').
> It sais "invalid credentials", though I verified
> with gq and the password is 
> the same as the one from /etc/shadow. Mention that I
> can search the database 
> without authentication (ldapsearch -x 'uid=root').
>  If someone has got his Mandrake (8.2) box
> authenticated using Openldap,
> or knows how could I solve this problem, please
> help!
>  It would be a great help if I could know the steps
> I have to follow and how 
> the configuration files should like. (I'm not so
> experienced with Linux) 
>  
>  Thank you for your understanding! 
> 
>  Paul Cusmin, 
>   qat@email.ro 
> 
> 
> 
> 
> 
> 
>
______________________________________________________________________
> Do you want a free e-mail for life ? Get it at
> http://www.email.ro/
> 

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com