After making this adjustment, and running it, now I am running into this
problem: ldapadd -x -D "uid=root,dc=solomon,dc=physics,dc=sc,dc=edu" -f
josh.ldif -W Enter LDAP Password:
adding new entry "uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu"
ldapadd: update failed: uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu
ldap_add: No such object (32)
I've looked at the archives, and it there are messages pertaining to them
that say to create the dc's.
Here's the modified josh.ldif that I've made to take that into
account(I'm not sure but this is what I understood it to mean that it
should go in this file):
dn: dc=edu
objectClass: dcObject
objectClass: top
dc: edu
dn: dc=sc,dc=edu
objectClass: dcObject
objectClass: top
dc: sc
dn: dc=physics,dc=sc,dc=edu
objectClass: dcObject
objectClass: top
dc: physics
dn: dc=solomon,dc=physics,dc=sc,dc=edu
objectClass: dcObject
objectClass: top
dc: solomon
dn: uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu
objectClass: top
objectClass: account
objectClass: posixAccount
uid: witthuhn
cn: Josh Witthuhn
uidNumber: 508
gidNumber: 508
homeDirectory: /home/witthuhn/
userPassword: blah
loginShell: /bin/bash
-------
And trying with this, I now get:
ldapadd -x -D "uid=root,dc=solomon,dc=physics,dc=sc,dc=edu" -f josh.ldif
-W Enter LDAP Password:
adding new entry "dc=edu"
ldapadd: update failed: dc=edu
ldap_add: Server is unwilling to perform (53)
additional info: referral missing
I find nothing on referral missing, so this is where I am stuck to what
is wrong(and probably I made a wrong assumption above).
Any further help would be appreciated.
Thanks,
Yossef Korang
The binddn needs to match the rootdn, which your config file specifies as
uid=root,dc=solomon,dc=physics,dc=sc,dc=edu
Try:
ldapadd -x -D uid=root,dc=solomon,dc=physics,dc=sc,dc=edu -f josh.ldif -W
Matthew Hardin
Symas Corporation
Packaged, certified, and supported LDAP software:
http://www.symas.net/download
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
yossef@yossefk.com
Sent: Wednesday, June 18, 2003 12:47 PM
To: openldap-software@OpenLDAP.org
Subject: Problems with LDAP
I'm having quite a bit of problems with LDAP. I've done a lot of
searching
and reading through the archives, and I haven't found a solution to the
problem.
This is what I am currently trying:
ldapadd -x -D "uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu"
-f josh.ldif
-W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
for the password, I am putting in secret(because that is what it
is set to in
the slapd.conf file)
Here's the slapd.conf file(with all the comments deleted of course):
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/nis.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
database bdb
suffix "dc=solomon,dc=physics,dc=sc,dc=edu"
rootdn "uid=root,dc=solomon,dc=physics,dc=sc,dc=edu"
rootpw secret
replica host=nuc003.psc.sc.edu:389
binddn="uid=root,dc=solomon,dc=physics,dc=sc,dc=edu"
bindmethod=simple
credentials=secret
replogfile /usr/local/etc/openldap/slapd.replog
directory /usr/local/var/openldap-data
index objectClass eq
------
Here is josh.ldif:
dn: uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu
objectClass: top
objectClass: account
objectClass: posixAccount
uid: witthuhn
cn: Josh Witthuhn
uidNumber: 508
gidNumber: 508
homeDirectory: /home/witthuhn/
userPassword: blah
loginShell: /bin/bash
------
Any help would be very appreciated with this.
Thanks,
Yossef Korang