https://github.com/lldap/lldap logo
pratat - I am trying to build postfix with llda...
# troubleshooting
p
I am trying to build postfix with lldap. When doing postmap -q abc.com ldap:/etc/postfix/ldap-virtual-domain.cf , its not returning any value. /etc/postfix/ldap-virtual-domain.cf configuration as follow # Address of your LDAP server with protocol specified server_host = ldaps://idm.abc.com:6360 # Base DN for domain entries search_base = dc=abc,dc=com # Adjust as necessary for your directory structure # Distinguished Name (DN) of the user allowing for LDAP binds bind_dn = uid=ro_admin,ou=people,dc=abc,dc=com # Password for the bind user (ensure secure handling of sensitive information) bind_pw = PASSWORD #TLS tls_ca_cert_file =/home/vmail/abc.com/lldap.crt # Define the query filter settings for virtual domains query_filter = (&(objectClass=inetOrgPerson)(mail=*@%s)) result_attribute = mail # Result format result_format = %s What should be the correct query_filter for to extract the dc ?
a
message has been deleted
p
I saw one example on google ldap-virtual-domains.cf server_host = ldap://ldap.example.net/ search_base = ou=Domains,dc=example,dc=net version = 3 bind = no query_filter = (&(ObjectClass=dNSDomain)(dc=%s)) result_attribute = dc But i dont think lldap has that objectClass
n
That's going to be tough, you can't really store anything other than users and groups in LLDAP
If you want only one domain, you might be able to make a fake "domain" user or group, by setting the expected attributes, and changing the query to only return that one
p
Hmm ok. I will try to create one then