[SOLVED] Postfix and Ldap: Unable to bind to server
I have a Debian Etch box I am trying to use to host multiple virtual domains for Email. I am using Postfix 2.3.8-2+etch1 and OpenLDAP 2.3.30-5+etch2. Right now I am having trouble getting Postfix to talk to ldap. It gives errors about not being able to bind:
Code:
Nov 26 04:33:02 clamato postfix/smtpd[32745]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled You can find my main.cf here: http://bokonon.rit.edu/main.cf. I searched around and found someone who mentioned that removing the ldap_ prfix that was present on some of the variables solved the problem, though it hasn't in my case. Has anyone seen this sort of thing before? |
Look in the /etc/ldap.conf file and you'll see something like this:-
Code:
# The distinguished name to bind to the server with Code:
2.6.18-92.1.13.el5xen[root@www etc]# ls -l ldap.secret Hope that helps! |
I already have the admin dn defined in /etc/openldap/slapd.conf, and a password set in the directory. I can log in and browse my directory using phpldapadmin just fine, using the username and password in my main.cf, so I'm not sure that's the problem.
|
Can you please post the (censored) output from:-
Code:
postconf -n |
Quote:
Code:
command_directory = /usr/sbin If you wouldn't mind, I guess I would like to see your's. |
I feel like a schoolboy again. I'll show you mine if you show me yours....
Code:
alias_database = hash:/etc/aliases Code:
# Postfix master process configuration file. For details on the format |
Alright guys, sorry for leaving this for a while but it's been driving me crazy, and I had to get my head out of it for a bit. ;) Blacky_5251, thanks for your info, though I think this is LDAP-specific.
First I added the line allow bind_v2 to my slapd.conf, which got rid of the protocol error. Next I went through the Postfix documentation for a while, but this is all the progress I've made. I created a file called ldap-users.cf, with the following: Code:
server_host = localhost Code:
postmap -q me@myvirtualdomain.com ldap:ldap-users.cf Code:
postmap: warning: dict_ldap_lookup: ldap-users.cf: Search base '' not found: 32: No such object |
Alright, I think I made some progress. When working with the postmap command, it wants to see a full path to the filename, not just a relative path. So this works:
Code:
postmap -q me@myvirtualdomain.com ldap:/etc/postfix/ldap-users.cf |
All times are GMT -5. The time now is 04:36 PM. |