LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ldap config (http://www.linuxquestions.org/questions/linux-server-73/ldap-config-617109/)

santanu.roy 01-29-2008 07:51 AM

Ldap config
 
Hi friend,
I tried to configure a ldap server with the help of
file:///root/ldp/Quick_HOWTO_%20_Ch31_%20_Centralized_Logins_Using_LDAP_and_RADIUS.htm
&
http://www.redhat.com/docs/manuals/e...-ldap-pam.html

links.
But I failed to cross the step of ldapadd & domainsearch:

[root@bigboy tmp]# ldapadd -x -D "cn=Manager,dc=example,dc=com" \
-W -f /etc/openldap/example.com.ldif
[root@bigboy tmp]# ldapadd -x -D "cn=Manager,dc=example,dc=com" \
-W -f /etc/openldap/root.ldif
[root@bigboy tmp]# ldapadd -x -D "cn=Manager,dc=example,dc=com" \
-W -f /etc/openldap/ldapusers.ldif

Theses commands returning with an error msg. & ldapsearch -x -b 'dc=example,dc=com' \
'(objectclass=*)'
this command is giving an output of 0 success.

But dns is working in this machine very fine.

Can you please guide me in proper way.

rupertwh 01-30-2008 06:01 AM

Quote:

Originally Posted by santanu.roy (Post 3038686)
Theses commands returning with an error msg.

And have you considered telling us the *content* of that error message?

Without having any more detail, two typical causes come to mind:
  1. You'll have to add the top node "dc=example,dc=com" using slapadd rather than ldapadd. (And turn OFF slapd before doing that).
  2. Check the file permissions of your database files/directories.


All times are GMT -5. The time now is 11:38 AM.