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?
Kind regards,
Harri
--On Thursday, February 4, 2021 5:30 PM +0200 "Harri T." haba713@gmail.com wrote:
What's wrong with the file tmp3.ldif?
I suggest closely reading the EXAMPLES section of the ldapmodify(1) manual page, as the error is rather obvious if you look at the very first example.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
On 4.2.2021 20.26, Stefan Kania wrote:
Am 04.02.21 um 16:30 schrieb Harri T.:
dn: uid=john,ou=People,dc=example,dc=com changetype: modify replace: shadowWarning shadowWarning: 7
-
replace: mail mail: john.doe@example.com
You are missing the line with just a "-" between the two attributes.
Thanks Stefan! I got it working.
Kind regards,
Harri
"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
openldap-technical@openldap.org