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

is the default schema valid?



Hi,
  I'm pretty new to LDAP and basically all I want it for is to make a
centralized login scheme - ie, passwd are authenticated at one place.
I set up slapd.conf and ldap.conf and used migrate_passwd.pl and
migrate_group.pl to generate the LDIF files. 
After that I did:

ldapadd -D "cn=manager, o=MonteCarloLab, c=US" -W < ~/passwd.ldif

But I get the error:

adding new entry uid=root,ou=People,o=MonteCarloLab,c=US
ldap_add: No such object

Is this a problem in the schema or in the naming of my domain? Below I
include my slapd.conf & ldap.conf

-------SLAPD.CONF--------------

include         /etc/openldap/slapd.at.conf
include         /etc/openldap/slapd.oc.conf
schemacheck     off
#referral       ldap://root.openldap.org/

pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=MonteCarloLab, c=US"
rootdn          "cn=manager, o=MonteCarloLab, c=US"
rootpw          ******
directory       /var/lib/ldap
lastmod on
index cn.uid

loglevel 64
defaultaccess read

access to attr=userPassword
        by self write
        by dn="cn=manager, o=MonteCarloLab, c=US" write
        by * compare

------SLAPD.CONF END-------------------------------

---------LDAP.CONF-----------------

BASE    o=MonteCarloLab, c=US
HOST    casino.chem.psu.edu

--------LDAP.CONF END---------------

-------------------------------------------------------------------
Rajarshi Guha                  | email: rajarshi@presidency.com
Box 19                         | web  : www.rajarshi.outputto.com 
152 Davey Laboratory           | ph   : (814) 863 1222
Department of Chemistry        | ICQ  : 123242928
Pensylvania State University   | AIM  : LoverOfPanda
-------------------------------------------------------------------
GPG Fingerprint: E8F3 281F 93A9 C90C 853E  5136 8455 201B C92F F3E7
-------------------------------------------------------------------
A bug in the code is worth two in the documentation.