Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ ~ ldapsearch -p 10389 -D "cn=sampleuser,ou=SampleOrg,dc=example,dc=com" -w secret -h 127.0.0.1 -b "dc=example,dc=com" -s sub "cn=sampleuser"
- # extended LDIF
- #
- # LDAPv3
- # base <dc=example,dc=com> with scope subtree
- # filter: cn=sampleuser
- # requesting: ALL
- #
- # sampleuser, SampleOrg, example.com
- dn: cn=sampleuser,ou=SampleOrg,dc=example,dc=com
- uid: xx
- userPassword:: e3NoYX1zYk4zT2dYQTdRRjJlSHBQRlhUL0FIWDNVaDQ9
- initials: w
- objectClass: organizationalPerson
- objectClass: person
- objectClass: inetOrgPerson
- objectClass: top
- cn: sampleuser
- sn: test
- # search result
- search: 2
- result: 0 Success
- # numResponses: 2
- # numEntries: 1
- ➜ ~ ldapmodify -p 10389 -D "uid=admin,ou=system" -w secret -h 127.0.0.1
- dn: cn=sampleuser,ou=SampleOrg,dc=example,dc=com
- changetype: modify
- add: pwdPolicySubentry
- pwdPolicySubentry: ads-pwdId=custom,ou=SampleOrg,dc=example,dc=com
- modifying entry "cn=sampleuser,ou=SampleOrg,dc=example,dc=com"
- ldap_modify: Constraint violation (19)
- additional info: CONSTRAINT_VIOLATION: failed for MessageType : MODIFY_REQUEST
- Message ID : 2
- Modify Request
- Object : 'cn=sampleuser,ou=SampleOrg,dc=example,dc=com'
- Modification[0]
- Operation : add
- Modification
- pwdPolicySubentry: ads-pwdId=custom,ou=SampleOrg,dc=example,dc=com org.apache.directory.api.ldap.model.message.ModifyRequestImpl@94685abb: ERR_278 More than one value has been provided for the single-valued attribute: pwdPolicySubentry
Advertisement
Add Comment
Please, Sign In to add comment