can't add contact with same lastname

2002-11-14
2003-04-12
  • Hielke Christian Braun

    Hello,

    subject says it all. If i already have a contact with the same
    lastname in the directory, i can't add another entry with
    the same lastname. Is this normal? Did i configure something
    wrong? Otherwise rolodap work really great! I use
    version 1.0.

    Thanks,
      Christian

     
    • Gregg Burton

      Gregg Burton - 2003-04-12

      The problem is that you did not create the roloplastuid record.  Without that record, every uid in the contacts directory is appended with the number "1" so you have:
      Smith1
      Jones1
      Doe1
      and when you try to create another "Smith" rolodap attempts to create another uid for "Smith1" and faults.

      With the roloplastuid record, uids are named:
      Smith1
      Jones2
      Doe3
      so that even two entries with the same last name will have unique uids.

      The roloplastuid record should have been created if you imported the sample ldif (though it somehow didn't in mine, but I did it piecemeal so I don't know how widespread this issue is.)  To create it, create an ldif file called ldiffilename (or whatever) that contains the  following:

      dn: cn=roloaplastuid, o=contacts.gburton.net
      objectclass: top
      objectclass: rolodapadmin
      cn: rolodaplastuid
      rolodaplastuid : 0

      Import it with the following command:
      ldapadd -f ldiffilename -xv -h ldapserver -D "cn=manager,o=contacts.gburton.net" -w password

      where ldiffilename is whatever you named the ldif file from above; ldapserver is you server's ip (localhost will usually work); contacts.gburton.net is your base DN; and password is the manager password.

      --Gregg
      "gregg_burton"  + at + "snet.net"

       

Log in to post a comment.