[PLUG] Error in login as a LDAP user-More detailed step by step

अमेय साठे aakreet40-plug at yahoo.com
Wed Jun 2 02:59:30 PDT 2010


Hi,
I am using RHEL5.1 distribution. Openldap-server version is openldap-servers-2.3.27-8
I have detailed only the steps which are confusing me/are not in accordance to the link.
Now; as per the link 

...I ran the command
1.
# cp -rv * /usr/share/openldap/migration/

My action:It asked me for overwriting the files. I said 'yes' for all.

2. #locate DB_CONFIG. 
   # locate DB_CONFIG
On the link's output:/usr/share/doc/openldap-servers-2.4.16/DB_CONFIG.example

On my distro: /etc/openldap/DB_CONFIG.example
Hence; I issued #cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/example.com/DB_CONFIG

3. #/usr/share/openldap/migration/migrate_all_offline.sh > /root/migrop 2> /root/migrerr

The contents of /root/migrop {This file contains output of the script.} are:
---------------------------------------------------------------------
Creating naming context entries...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Importing into LDAP...
Migrating netgroups (by user)...
Migrating netgroups (by host)...
Preparing LDAP database...
Migration failed: saving failed LDIF to /tmp/nis.3257.ldif
---------------------------------------------------------------------



The contents of /root/migrerr {This file contains errors of the script.}are:
-------------------------------------------------------------------------------------
slapadd: line 5: database (dc=example,dc=com) not configured to hold "dc=padl,dc=com"
slapadd: line 5: database (dc=example,dc=com) not configured to hold "dc=padl,dc=com"
-------------------------------------------------------------------------------------


On both server & client machine;
4.  Output of the command-> ldapsearch -x -b 'dc=example,dc=com'    '(objectclass=*)'


# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

On both server & client;
5. telnet 192.168.0.7 389
Trying 192.168.0.7...
Connected to station7.example.com (192.168.0.7).
Escape character is '^]'.

On client side; as given in the link; I created the home directories. Configured ldap.conf. Also ran the authconfig-tui command.

But; still the issuance of the command # chown -R ldapuser:users /home/ldapuser/
shows
chown: `ldapuser:users`:invalid user

With Warm Regards,
Ameya Sathe






More information about the plug-mail mailing list