Modify

Opened 11 years ago

Last modified 11 years ago

#11335 new defect

Allowing different URI schemes than ldap://

Reported by: robert.fenk@… Owned by: Emmanuel Blot
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@… 11 years ago.
Support full URIs instead of hostname + port

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by robert.fenk@…

Attachment: ldapplugin_uri.patch added

Support full URIs instead of hostname + port

comment:1 Changed 11 years 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Emmanuel Blot.

Add Comment


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

 
Note: See TracTickets for help on using tickets.