Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. ### Schema includes ###########################################################
  2. include /etc/openldap/schema/core.schema
  3. include /etc/openldap/schema/cosine.schema
  4. include /etc/openldap/schema/inetorgperson.schema
  5. include /etc/openldap/schema/misc.schema
  6. include /etc/openldap/schema/nis.schema
  7.  
  8. ## Module paths ##############################################################
  9. modulepath /usr/lib64/openldap/
  10. moduleload back_ldap
  11. moduleload rwm
  12.  
  13. ## Support both LDAPv2 and LDAPv3
  14. allow bind_v2
  15.  
  16. # Main settings ###############################################################
  17. pidfile /var/run/openldap/slapd.pid
  18. argsfile /var/run/openldap/slapd.args
  19.  
  20. ### Database definition (Proxy to AD) #########################################
  21. database ldap
  22. readonly yes
  23. protocol-version 3
  24. rebind-as-user yes
  25. uri "ldap://10.0.0.90:389"
  26. suffix "DC=secretdomain,DC=com"
  27. idassert-bind bindmethod=simple
  28. binddn="CN=MropenLDAP,OU=Administration,DC=secretdomain,DC=com"
  29. credentials=topsecretpass
  30. mode=none
  31. idassert-authzFrom "*"
  32. overlay rwm
  33. rwm-map attribute uid sAMAccountName
  34. rwm-map attribute mail proxyAddresses
  35.  
  36. ### Logging ###################################################################
  37. logfile /var/log/slapd/slapd.log
  38. loglevel 1
  39.  
  40. ldapsearch -H ldap://10.0.0.90 -x -b "OU=Administration,DC=secretdomain,DC=com" -v -LLL "(samaccountname=someusername)"
  41.  
  42. ldapsearch -H ldap://10.0.0.90 -x -b "OU=Administration,DC=secretdomain,DC=com" -v -LLL
  43.  
  44. ldap_initialize( ldap://10.0.0.90:389/??base )
  45. filter: (objectclass=*)
  46. requesting: All userApplication attributes
  47. Operations error (1)
  48. Additional information: 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1
  49.  
  50. ldapsearch -H ldap://10.0.0.90 -x -b "OU=Administration,DC=secretdomain,DC=com" -v -LLL -D "CN=MropenLDAP,OU=Administration,DC=secretdomain,DC=com" "(samaccountname=someusername)" -w topsecretpass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement