I'm following this:
http://www.openldap.org/faq/data/cache/1111.html
I'm getting this error:
ldap_add: Naming violation (64) additional info: value of naming attribute 'uid' is not present in entry
Here are the sample ldif entries:
dn: uid=luzer,ou=main,dc=acme,dc=com uid: luzer objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: posixAccount objectClass: shadowAccount loginShell: /bin/bash userPassword: {SSHA}8Sz/X2Fv1S1COqD46K5kEwFS2Lyj4h2I shadowWarning: 7 uidNumber: 1000 shadowMax: 99999 gidNumber: 1000 sn: De Torre homeDirectory: /home/luzer mail: luzer givenName: Bob shadowLastChange: 14007 cn: luzer
dn: uid=luzer,ou=alternate,dc=acme,dc=com objectclass: alias objectclass: extensibleObject uid: alias aliasedobjectname: uid=luzer,ou=main,dc=acme,dc=com
Michael March wrote:
I'm following this:
http://www.openldap.org/faq/data/cache/1111.html
I'm getting this error:
ldap_add: Naming violation (64) additional info: value of naming attribute 'uid' is not present in entry
Here are the sample ldif entries:
dn: uid=luzer,ou=main,dc=acme,dc=com uid: luzer objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: posixAccount objectClass: shadowAccount loginShell: /bin/bash userPassword: {SSHA}8Sz/X2Fv1S1COqD46K5kEwFS2Lyj4h2I shadowWarning: 7 uidNumber: 1000 shadowMax: 99999 gidNumber: 1000 sn: De Torre homeDirectory: /home/luzer mail: luzer givenName: Bob shadowLastChange: 14007 cn: luzer
dn: uid=luzer,ou=alternate,dc=acme,dc=com objectclass: alias objectclass: extensibleObject uid: alias aliasedobjectname: uid=luzer,ou=main,dc=acme,dc=com
Shouldn't this be:
dn: uid=alias,ou=alternate,dc=acme,dc=com uid: alias [..]
Ciao, Michael.
2009/8/5 Michael Ströder michael@stroeder.com
Michael March wrote:
I'm following this:
http://www.openldap.org/faq/data/cache/1111.html
I'm getting this error:
ldap_add: Naming violation (64) additional info: value of naming attribute 'uid' is not present in
entry
Here are the sample ldif entries:
dn: uid=luzer,ou=main,dc=acme,dc=com uid: luzer objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: posixAccount objectClass: shadowAccount loginShell: /bin/bash userPassword: {SSHA}8Sz/X2Fv1S1COqD46K5kEwFS2Lyj4h2I shadowWarning: 7 uidNumber: 1000 shadowMax: 99999 gidNumber: 1000 sn: De Torre homeDirectory: /home/luzer mail: luzer givenName: Bob shadowLastChange: 14007 cn: luzer
dn: uid=luzer,ou=alternate,dc=acme,dc=com objectclass: alias objectclass: extensibleObject uid: alias aliasedobjectname: uid=luzer,ou=main,dc=acme,dc=com
Shouldn't this be:
dn: uid=alias,ou=alternate,dc=acme,dc=com uid: alias [..]
Doh! That worked.
thanks!
Michael March wrote:
I'm following this:
http://www.openldap.org/faq/data/cache/1111.html
I'm getting this error:
ldap_add: Naming violation (64) additional info: value of naming attribute 'uid' is not present in
entry
Here are the sample ldif entries:
dn: uid=luzer,ou=alternate,dc=acme,dc=com objectclass: alias objectclass: extensibleObject uid: alias aliasedobjectname: uid=luzer,ou=main,dc=acme,dc=com
Shouldn't this be:
dn: uid=alias,ou=alternate,dc=acme,dc=com uid: alias [..]
Doh! That worked.
thanks!
How do I delete the alias entry w/o killing the 'target'?
thanks!
Michael Ströder wrote:
Michael March wrote:
How do I delete the alias entry w/o killing the 'target'?
By turning off alias dereferencing.
Alias dereferencing is only defined for searches. There is no risk of deleting a target by deleting the alias.
p.
2009/8/5 Pierangelo Masarati masarati@aero.polimi.it
Michael Ströder wrote:
Michael March wrote:
How do I delete the alias entry w/o killing the 'target'?
By turning off alias dereferencing.
Alias dereferencing is only defined for searches. There is no risk of deleting a target by deleting the alias.
Weird.. I thought it deleted both.. but I just tried it again and you are right.
thanks!
Michael Ströder wrote:
Michael March wrote:
How do I delete the alias entry w/o killing the 'target'?
By turning off alias dereferencing.
No. Alias dereferencing is only done on Searches. A normal delete on the alias entry will remove it.
openldap-technical@openldap.org