PostgreSQL auth over LDAPS: "could not start LDAP TLS session: error code -1"
I am trying to get PostgreSQL to authenticate over LDAPS on another server; the PostgreSQL server is Debian 6.0.2 (Squeeze), x64, fully updated as of today:
Package: postgresql Version: 8.4.8-0squeeze2 Package: gnutls-bin Version: 2.8.6-1 Followed much of the info from here for my PostgreSQL setup: http://www.stuartellis.eu/articles/postgresql-setup/ I can get LDAP authentication working, but not LDAPS (/etc/postgresql/8.4/main/pg_hba.conf) Code:
## This works but isn't encrypted: Code:
2011-09-30 14:05:33 CDT LOG: could not start LDAP TLS session: error code -1 Code:
root@pgsql:~# telnet auth.mydomain.net 636 |
are you dealing with ldaps or ldap w/ tls?? using a tls session, with startls, this will use port 389 and convert to an encrypted session, unlike an ssl session on 636 where it's ssl from the very very start.
|
I'd like to deal with LDAPS on port 636 using SSLs.
|
right, so don't try to use tls then. From a minute on google it looks like you would want to use an ldaps:// style url instead: http://wiki.postgresql.org/wiki/LDAP...ion_against_AD
|
All times are GMT -5. The time now is 02:12 PM. |