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

newbie Redhat Linux 7.0 install problem



I am apparently running into a corrupted database (?) because the following command fails:

# ldappasswd -vvv -D "cn=Manager, dc=test, dc=com" -w secret -b 'dc=test,dc=com'
'(uid=user1@test.com)' -t '(uid=user1@test.com)' -H crypt -h localhost
New password:
Re-enter new password:
(uid=user1@test.com):{crypt}zcighxVgtityU:secretuser <mailto:uid=user1@test.com):{crypt}zcighxVgtityU:secretuser>
ldap_modify: No such object
uid=user1@test.com, ou=accounts, dc=test, dc=com:{crypt}aNySTy3ylgM8I:secretuser


So, I have reinstalled BerkeleyDB and OpenLDAP and am still getting the same ldappasswd error message:

Here is how I reinstalled:

1) stopped slapd

2) deleted the entire database as it was just a test database
# cd /usr/local/var/openldap-ldbm
# rm *

3) recompiled BerkeleyDB 3.2.9 into /usr/local/BerkeleyDB.3.2
after doing a distclean

4) env \
CPPFLAGS="-I/usr/local/BerkeleyDB3.2/include" \
LDFLAGS="-L/usr/local/BerkeleyDB3.2/lib" \
./configure --enable-ldbm --with-ldbm-api=db
NOTE: I tried --with-ldbm-api=db2, but this failed, so changed to =db
and had a successful configure, make depend, make, make install sequence

5) started slapd

# more test.ldif
suffix "dc=test, dc=com"

dn: dc=test, dc=com
objectclass: top

dn: ou=accounts, dc=test, dc=com
objectclass: top
objectclass: organizationalUnit

dn: uid=user1@test.com, ou=accounts, dc=test, dc=com
cn: Some User1
sn: User1
objectClass: top
objectClass: person
objectClass: inOrgPerson
objectClass: qmailUser
accountStatus: active
deliveryMode: localdelivery
homedirectory: /home/maildirs/test.com/test.com-user1/
mail: user1@test.com <mailto:user1@test.com>
mailAlternateAddress: SomeUser1@test.com
mailAlternateAddress: Some_User1@test.com <mailto:Some_User1@test.com>
mailHost: mail.test.com
mailMessageStore: /home/maildirs/test.com/test.com-user1/Maildir/
uid: user1@test.com <mailto:user1@test.com>
userPassword: secretuser

# ldapadd -acrv -D ?cn=Manager, dc=test, dc=com? -w secret -f test.ldif
...
adding new entry uid=user1@test.com, ou=accounts, dc=test, dc=com
modify complete

# ls -las /usr/local/var/openldap-ldbm
total 92
4 drwx------ 2 root root 4096 Jul 31 09:04 .
4 drwxr-xr-x 3 root root 4096 Jul 31 08:57 ..
4 -rw-r--r-- 1 root root 3 Jul 31 09:04 NEXTID
16 -rw------- 1 root root 12419 Jul 31 09:04 dn.gdbm
16 -rw------- 1 root root 12392 Jul 31 09:04 dn2id.gdbm
16 -rw------- 1 root root 12333 Jul 31 09:04 id2children.gdbm
16 -rw------- 1 root root 12948 Jul 31 09:04 id2entry.gdbm
16 -rw------- 1 root root 12435 Jul 31 09:04 objectclass.gdbm


# cd /usr/local/var/openldap-ldbm

NOTE: Stopped slapd

# /usr/local/sbin/ldbmcat -n id2entry.gdbm > ldif

# more ldif
dn: ou=accounts, dc=test, dc=com
objectclass: top
objectclass: organizationalUnit

dn: uid=user1@test.com, ou=accounts, dc=test, dc=com
cn: Some User1
sn: User1
objectclass: top
objectclass: person
objectclass: inOrgPerson
objectclass: qmailUser
accountstatus: active
deliverymode: localdelivery
homedirectory: /home/maildirs/test.com/test.com-user1/
mail: user1@test.com <mailto:user1@test.com>
mailalternateaddress: SomeUser1@test.com <mailto:SomeUser1@test.com>
mailalternateaddress: Some_User1@test.com <mailto:Some_User1@test.com>
mailhost: mail.test.com
mailmessagestore: /home/maildirs/test.com/test.com-user1/Maildir/
uid: user1@test.com <mailto:user1@test.com>
userpassword: secretuser

dn: dc=test, dc=com
objectclass: top

NOTE: Started slapd

# ldappasswd -vvv -D "cn=Manager, dc=test, dc=com" -w secret -b 'dc=test,dc=com'
'(uid=user1@test.com)' -t '(uid=user1@test.com)' -H crypt -h localhost
New password:
Re-enter new password:
(uid=user1@test.com):{crypt}zcighxVgtityU:secretuser <mailto:uid=user1@test.com):{crypt}zcighxVgtityU:secretuser>
ldap_modify: No such object
uid=user1@test.com, ou=accounts, dc=test, dc=com:{crypt}aNySTy3ylgM8I:secretuser


Same error as at the top.

Please advise.




_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp