Modify

Opened 12 months ago

Last modified 12 months ago

#11335 new defect

Allowing different URI schemes than ldap://

Reported by: robert.fenk@… Owned by: eblot
Priority: normal Component: LdapPlugin
Severity: normal Keywords: uri ldap
Cc: Trac Release: 1.0

Description

At our site we are using LdapPlugin to access a local slapd-instance via ldapi:// and the default socket in /var/run/slapd/ldapi.

I want to share the modifications i had to make to LdapPlugin here. Unfortunately the changes are not backwards compatible, so an existing configuration will not work. If there is interest I can change that though.

Attachments (1)

ldapplugin_uri.patch (6.3 KB) - added by robert.fenk@… 12 months ago.
Support full URIs instead of hostname + port

Download all attachments as: .zip

Change History (2)

Changed 12 months ago by robert.fenk@…

Support full URIs instead of hostname + port

comment:1 Changed 12 months ago by robert.fenk@…

An example config fpr using a local slapd-connection

[ldap]
enable = true
basedn = o=exampled,dc=com
user_rdn = ou=People
uidattr = uid
group_rdn = ou=Groups
groupname = posixGroup
groupmember = memberUid
groupattr = cn
permfilter = objectClass=tracgroup
manage_groups = false

# configure URI explicitly instead of implicitly with ldap://hostname:port
uri = ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi

The relevant part for using a connection to a server using STARTTLS:

uri = ldap://ldap-host
start_tls = true

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.