- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ldapadd command doesn't work in RHEL v3u4
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:17 AM
тАО01-14-2009 08:17 AM
ldapadd command doesn't work in RHEL v3u4
I have a LDAP server and a client, they are all RHEL v3u4. Currently I met a problem, sometimes ldapadd command doesn't work, could not create user account in LDAP database, details are as follow.
1. create *.ldif files
======================
I created two ldap files u2222.ldif and u8888.ldif through the same template and did a little bit modifications.
# cat u2222.ldif
dn: uid=u2222,ou=People,dc=hh,dc=ca
uid: u2222
cn: u2222
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}OYKa4hfoki5k6
shadowLastChange: 12922
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/ksh
uidNumber: 2222
gidNumber: 100
homeDirectory: /home/u2222
# cat u8888.ldif
dn: uid=u8888,ou=People,dc=hh,dc=ca
uid: u8888
cn: u8888
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}OYKa4hfoki5k6
shadowLastChange: 12922
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/ksh
uidNumber: 8888
gidNumber: 100
homeDirectory: /home/u8888
2. run command ldapadd
======================
# ldapadd -x -D "cn=manager,dc=hh,dc=ca" -w abcde -f u2222.ldif
# ldapadd -x -D "cn=manager,dc=hh,dc=ca" -w abcde -f u8888.ldif
(abcde is the correct passwd)
Above commands worked without error.
3. Verification
===============
# id u8888
uid=8888(u8888) gid=100(users) groups=100(users)
# id u2222
id: j4222: No such user
u2222 once be used before, that user wanna reset passwd for him. I tried but didn't work. I removed this user account via cmd # ldapdelete -x -D "cn=manager,dc=hh,dc=ca" -w abcde "uid=2222,ou=People,dc=hh,dc=ca", worked. And I wannt recreate it via cmd ldapadd. But met above problem. new user could not be checked out in the LDAP server. u8888 is the new user account haven't been used before. It could be created and check out in the system, and ldapdelete worked for u8888.
BTW, all the changes have been done in the LDAP server.
I think, u2222's some old ldap records should be hided some where in the system, otherwise why u8888 worked and u2222 didn't work.
Could you please tell me how to fix it. Any answers will be very appreciate.
-G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:22 AM
тАО01-14-2009 08:22 AM
Re: ldapadd command doesn't work in RHEL v3u4
id: u2222: No such user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:24 AM
тАО01-14-2009 08:24 AM
Re: ldapadd command doesn't work in RHEL v3u4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:41 AM
тАО01-14-2009 08:41 AM
Re: ldapadd command doesn't work in RHEL v3u4
...
ldap_add: Already exists
ldif_record() = 68
but id u2222 no that user
??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 08:45 AM
тАО01-14-2009 08:45 AM
Re: ldapadd command doesn't work in RHEL v3u4
ldapdelete worked for user "u2222".
Although # id u2222 didn't work. But ldapadd command output user existing. And I could run command ldapdelete to remove user u2222 and re-create it later. But why command id could not show user u2222.
Thanks.
-G