"Harri T." haba713@gmail.com schrieb am 04.02.2021 um 16:30 in Nachricht
167737c8-7717-2fe3-4d3a-486e592b7422@gmail.com:
Hi
Updating the user attribute "shadowWarning" works fine:
# cat tmp4.ldif dn: uid=john,ou=People,dc=example,dc=com changetype: modify replace: shadowWarning shadowWarning: 7
# ldapmodify ‑H ldapi:/// ‑D cn=admin,dc=example,dc=com ‑w ******** ‑f tmp4.ldif modifying entry "uid=john,ou=People,dc=example,dc=com"
When I add the attribute "mail" into ldif the update fails:
# cat tmp3.ldif dn: uid=john,ou=People,dc=example,dc=com changetype: modify replace: shadowWarning shadowWarning: 7 replace: mail mail: john.doe@example.com
# ldapmodify ‑H ldapi:/// ‑D cn=admin,dc=example,dc=com ‑w ******** ‑f tmp3.ldif ldapmodify: wrong attributeType at line 5, entry "uid=john,ou=People,dc=example,dc=com"
What's wrong with the file tmp3.ldif?
Does this example from the manual ldif(5) ring a bell? ;-)
dn: cn=Babs Jensen,dc=example,dc=com changetype: modify add: givenName givenName: Barbara givenName: babs - replace: description description: the fabulous babs - delete: sn sn: jensen
Kind regards,
Harri