Guest User

Untitled

a guest
Aug 18th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. dn: uid=auser,ou=People,dc=example,dc=com
  2. cn: A User
  3. displayname: A User
  4. gecos: A User
  5. gidnumber: 1011
  6. givenname: A
  7. homedirectory: /home/auser
  8. host: host1
  9. host: host2
  10. host: host3
  11. host: host4
  12. mailacceptinggeneralid: root
  13. loginshell: /bin/bash
  14. objectclass: inetOrgPerson
  15. objectclass: posixAccount
  16. objectclass: shadowAccount
  17. objectclass: hostObject
  18. objectclass: postfixUser
  19. objectclass: top
  20. sn: User
  21. uid: auser
  22. uidnumber: 1001
  23.  
  24. server_host = ldap.example.com
  25. search_base = dc=example, dc=com
  26.  
  27. # look for entries with this
  28. query_filter = (|(uid=%s)(mailacceptinggeneralid=%s)(mail=%[email protected]))
  29.  
  30. # what attribute from the search result is returned
  31. result_attribute = mail
  32.  
  33. # the format in which the result is returned
  34. result_format = %s
  35.  
  36. # A query using the uid of the user
  37. postmap -q auser ldap:/etc/postfix/ldap-mail.cf
  38.  
  39. # A query using the corporate username
  40. postmap -q a.user ldap:/etc/postfix/ldap-mail.cf
  41.  
  42. # A query for a user specified in mailacceptinggeneralid
  43. postmap -q root ldap:/etc/postfix/ldap-mail.cf
  44.  
  45. server_host = ldap.example.com
  46. search_base = dc=example, dc=com
  47. query_filter = (|(host=%3)(host=*))
  48. result_attribute = mail
  49. result_format = %s
  50.  
  51. postmap -q [email protected] ldap:/etc/postfix/ldap-host-users.cf
  52.  
  53. # The following also returns a list of email addresses, but shouldn't:
  54. postmap -q [email protected] ldap:/etc/postfix/ldap-host-users.cf
Advertisement
Add Comment
Please, Sign In to add comment