LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ldap server config prob (https://www.linuxquestions.org/questions/linux-server-73/ldap-server-config-prob-624481/)

soumalya 02-28-2008 08:40 AM

ldap server config prob
 
Sir
i hav configure ldap server in rhel4
domain: test.com m/n:telnet ip:192.168.100.167

slappasswd
{SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ

edit /etc/openldap/slapd.conf

database bdb
suffix "dc=test,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw {SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ
directory /var/lib/ldap/

service ldap start

useradd -g users ldapuser

grep ldapuser /etc/passwd > /etc/openldap/passwd.ldapusers
grep root /etc/passwd > /etc/openldap/passwd.root

updatedb

locate migrate

/usr/share/openldap/migration/migrate_passwd.pl /etc/openldap/passwd.ldapusers /etc/openldap/ldapusers.ldif

/usr/share/openldap/migration/migrate_passwd.pl
/etc/openldap/passwd.root /etc/openldap/root.ldif

change root.ldif file
cn: Manager

create test.com.ldif
vi /etc/openldap/test.com.ldif

dn: dc=test,dc=com
dc: test
description: Root LDAP entry for test.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

dn: ou=People, dc=test,dc=com
ou: People
description: All people in organisation
objectClass: organizationalUnit

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/test.com.ldif

ldappasswd

output shows #ldap_bind: invalid credentials (49)

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/root.ldif

ldappasswd

output shows #ldap_bind: invalid credentials (49)

ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/ldapusers.ldif


ldappasswd

output shows #ldap_bind: invalid credentials (49)

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

result : 0 success


hlep me to solve this prob. where i have done worng??????????

thanks in advance

frndrfoe 02-28-2008 04:34 PM

dc not matching?
Code:

suffix "dc=test,dc=com"
rootdn "cn=Manager,dc=example,dc=com"


soumalya 02-29-2008 05:27 AM

sir

thanks for ur reply

i have change example to test, but the same message is arrised.


can u pls tell me the steps to configure ldap


thanks again

billymayday 02-29-2008 05:31 AM

Try this

http://www.linuxhomenetworking.com/w...DAP_and_RADIUS

soumalya 03-03-2008 12:25 AM

thanks

i have tried as ur link but when i use

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

the result shows 0 success


a hve configured clien machine and login as ldapuser i cant login

plssssssssssssssss help


thanks

billymayday 03-03-2008 12:49 AM

does ldapsearch work as expected on the server?

soumalya 03-03-2008 09:42 PM

when i use

[root@telnet /]# ldapsearch -x -b 'dc=test,dc=com' '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=test,dc=com> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# test.com
dn: dc=test,dc=com
dc: test
description: Root LDAP entry for test.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

this is the output on the server


thanks


All times are GMT -5. The time now is 02:52 AM.