<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ldapadd command doesn't work in RHEL v3u4 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337638#M34859</link>
    <description>BTW, run cmd ldapsearch, u8888 has correct output, but u2222 no output. User u2222 does not exist in the LDAP database.</description>
    <pubDate>Wed, 14 Jan 2009 16:24:04 GMT</pubDate>
    <dc:creator>Gary L</dc:creator>
    <dc:date>2009-01-14T16:24:04Z</dc:date>
    <item>
      <title>ldapadd command doesn't work in RHEL v3u4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337636#M34857</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;1. create *.ldif files&lt;BR /&gt;======================&lt;BR /&gt;I created two ldap files u2222.ldif and u8888.ldif through the same template and did a little bit modifications. &lt;BR /&gt;&lt;BR /&gt;# cat u2222.ldif &lt;BR /&gt;dn: uid=u2222,ou=People,dc=hh,dc=ca&lt;BR /&gt;uid: u2222&lt;BR /&gt;cn: u2222&lt;BR /&gt;objectClass: account&lt;BR /&gt;objectClass: posixAccount&lt;BR /&gt;objectClass: top&lt;BR /&gt;objectClass: shadowAccount&lt;BR /&gt;userPassword: {crypt}OYKa4hfoki5k6&lt;BR /&gt;shadowLastChange: 12922&lt;BR /&gt;shadowMax: 99999&lt;BR /&gt;shadowWarning: 7&lt;BR /&gt;loginShell: /bin/ksh&lt;BR /&gt;uidNumber: 2222&lt;BR /&gt;gidNumber: 100&lt;BR /&gt;homeDirectory: /home/u2222&lt;BR /&gt;&lt;BR /&gt;# cat u8888.ldif &lt;BR /&gt;dn: uid=u8888,ou=People,dc=hh,dc=ca&lt;BR /&gt;uid: u8888&lt;BR /&gt;cn: u8888&lt;BR /&gt;objectClass: account&lt;BR /&gt;objectClass: posixAccount&lt;BR /&gt;objectClass: top&lt;BR /&gt;objectClass: shadowAccount&lt;BR /&gt;userPassword: {crypt}OYKa4hfoki5k6&lt;BR /&gt;shadowLastChange: 12922&lt;BR /&gt;shadowMax: 99999&lt;BR /&gt;shadowWarning: 7&lt;BR /&gt;loginShell: /bin/ksh&lt;BR /&gt;uidNumber: 8888&lt;BR /&gt;gidNumber: 100&lt;BR /&gt;homeDirectory: /home/u8888&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. run command ldapadd&lt;BR /&gt;======================&lt;BR /&gt;# ldapadd -x -D "cn=manager,dc=hh,dc=ca" -w abcde -f u2222.ldif&lt;BR /&gt;&lt;BR /&gt;# ldapadd -x -D "cn=manager,dc=hh,dc=ca" -w abcde -f u8888.ldif&lt;BR /&gt;&lt;BR /&gt;(abcde is the correct passwd)&lt;BR /&gt;&lt;BR /&gt;Above commands worked without error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Verification&lt;BR /&gt;===============&lt;BR /&gt;# id u8888&lt;BR /&gt;uid=8888(u8888) gid=100(users) groups=100(users)&lt;BR /&gt;&lt;BR /&gt;# id u2222&lt;BR /&gt;id: j4222: No such user&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;BTW, all the changes have been done in the LDAP server.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me how to fix it. Any answers will be very appreciate.&lt;BR /&gt;&lt;BR /&gt;-G</description>
      <pubDate>Wed, 14 Jan 2009 16:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337636#M34857</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2009-01-14T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: ldapadd command doesn't work in RHEL v3u4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337637#M34858</link>
      <description>Sorry, the item-3 verification # id u2222 output shoulbe be &lt;BR /&gt;&lt;BR /&gt;id: u2222: No such user&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 16:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337637#M34858</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2009-01-14T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ldapadd command doesn't work in RHEL v3u4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337638#M34859</link>
      <description>BTW, run cmd ldapsearch, u8888 has correct output, but u2222 no output. User u2222 does not exist in the LDAP database.</description>
      <pubDate>Wed, 14 Jan 2009 16:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337638#M34859</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2009-01-14T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: ldapadd command doesn't work in RHEL v3u4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337639#M34860</link>
      <description>I run the ldapadd cmd again for u2222, I got below message:&lt;BR /&gt;...&lt;BR /&gt;ldap_add: Already exists&lt;BR /&gt;&lt;BR /&gt;ldif_record() = 68&lt;BR /&gt;&lt;BR /&gt;but id u2222 no that user&lt;BR /&gt;&lt;BR /&gt;??&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 16:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337639#M34860</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2009-01-14T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: ldapadd command doesn't work in RHEL v3u4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337640#M34861</link>
      <description>Additional input:&lt;BR /&gt;&lt;BR /&gt;ldapdelete worked for user "u2222".&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;-G</description>
      <pubDate>Wed, 14 Jan 2009 16:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapadd-command-doesn-t-work-in-rhel-v3u4/m-p/4337640#M34861</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2009-01-14T16:45:44Z</dc:date>
    </item>
  </channel>
</rss>

