Anyone has successfully implemented migrating their /etc/passwd to LDAP?
 
here is my slapd.conf
 
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/nis.schema
#include         /etc/openldap/schema/misc.schema
i#nclude         /etc/openldap/schema/inetorgperson.schema
# Define global ACLs to disable default read access.
 
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org
 
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
 
# Load dynamic backend modules:
# modulepath    /usr/lib/openldap/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
moduleload      back_shell.la
#######################################################################
# ldbm database definitions
#######################################################################
 
database        ldbm
suffix          "dc=rnd,dc=abc,dc=com"
rootdn          "cn=rnd,dc=rnd,dc=abc,dc=com"
rootpw          secret
directory       /var/lib/ldap
index   objectClass     eq
loglevel        -1
ldap.conf
 
host    localhost:389
base    dc=rnd,dc=abc,dc=com
ldap_version    2
 
Sample LDIF file
 
dn: uid=root,ou=People,dc=rnd,dc=abc,dc=com
uid: root
cn: root
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}eNtoFN7zL2Gnc
shadowLastChange: 12080
shadowMax: 10000
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /root
gecos: root
ldapadd -f passwd.ldif
Suse:~ # ldapadd -f passwd.ldif -W
Enter LDAP Password:
adding new entry uid=root,ou=People,dc=rnd,dc=abc,dc=com
ldap_add: No such object
ldap_add: matched: dc=rnd,dc=abc,dc=com
ldap_add: additional info: parent does not exist
 
Question 1
 
Do i need to initialize the database and how can i do it ?
 
Question 2
 
Is the migration script from padl.com is compatible with openldap 2.0
 
SALAMAT PO ! MGA GURU
 

 
 
 

Reply via email to