Guest User

ApachdeDS LDAP

a guest
Jul 10th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. ➜  ~  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"
  2. # extended LDIF
  3. #
  4. # LDAPv3
  5. # base <dc=example,dc=com> with scope subtree
  6. # filter: cn=sampleuser
  7. # requesting: ALL
  8. #
  9.  
  10. # sampleuser, SampleOrg, example.com
  11. dn: cn=sampleuser,ou=SampleOrg,dc=example,dc=com
  12. uid: xx
  13. userPassword:: e3NoYX1zYk4zT2dYQTdRRjJlSHBQRlhUL0FIWDNVaDQ9
  14. initials: w
  15. objectClass: organizationalPerson
  16. objectClass: person
  17. objectClass: inetOrgPerson
  18. objectClass: top
  19. cn: sampleuser
  20. sn: test
  21.  
  22. # search result
  23. search: 2
  24. result: 0 Success
  25.  
  26. # numResponses: 2
  27. # numEntries: 1
  28. ➜  ~  ldapmodify -p 10389 -D "uid=admin,ou=system" -w secret -h 127.0.0.1
  29. dn: cn=sampleuser,ou=SampleOrg,dc=example,dc=com
  30. changetype: modify
  31. add: pwdPolicySubentry
  32. pwdPolicySubentry: ads-pwdId=custom,ou=SampleOrg,dc=example,dc=com
  33.  
  34. modifying entry "cn=sampleuser,ou=SampleOrg,dc=example,dc=com"
  35. ldap_modify: Constraint violation (19)
  36.     additional info: CONSTRAINT_VIOLATION: failed for MessageType : MODIFY_REQUEST
  37. Message ID : 2
  38.     Modify Request
  39.         Object : 'cn=sampleuser,ou=SampleOrg,dc=example,dc=com'
  40.             Modification[0]
  41.                 Operation :  add
  42.                 Modification
  43. 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