ldapi:// with path

Michael Ströder michael at stroeder.com
Tue Jun 30 21:50:33 CEST 2015


Michael Ströder wrote:
> Arran Cudbard-Bell wrote:
>> OK, should work now.
> 
> These cases both work:
> 
> server = 'ldap://localhost:1390'
> server = 'localhost:1390'
> 
> This does not work:
> server = 'ldapi://%2Ftmp%2Fopenldap-socket'
> 
> => "Failed recombining URL components"

And this fails too:

server = 'ldapi://'

rlm_ldap (ldap): Bind with uid=radiusd,ou=sys,dc=stroeder,dc=local to
ldapi://:389 failed: Can't contact LDAP server
       ^^^^^

As said you should not do any recombination and pass the string as is to
libldap. This would save you a lot of headache.

Ciao, Michael. (author of python-ldap's module ldapurl)





More information about the Freeradius-Users mailing list