Opened 3 years ago

Closed 3 years ago

#1486997 closed Feature Patches (fixed)

Individual LDAP addressbook with authentication dn search

Reported by: squisher Owned by:
Priority: 5 Milestone: 0.5-beta
Component: LDAP connection Version: 0.4-stable
Severity: normal Keywords: ldap addressbook
Cc:

Description

Hi,
I implemented an ldap search so that I could do a proper bind for an
individual address book. The login name is used to search for the DN to
bind with. The attached patch requires additional settings for the
address book:
+ 'search_base_dn' => 'ou=users,dc=foo,dc=bar',
+ 'search_filter' => '(&(objectClass=posixAccount)(uid=%u))',
and introduces another expansion, %dn, e.g.:
+ 'base_dn' => 'ou=%dn,ou=addressbook,dc=foo,dc=bar',
%dn will be replaced by the DN that the above ldap search yielded.

Let me know if you have any questions or if I need to fix something with regards to this patch.

Thanks!

Attachments (1)

0001-Use-search_base_dn-and-search_filter-settings-to-fin.patch (2.0 KB) - added by squisher 3 years ago.
Patch to implement a search for the bind DN

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by squisher

Patch to implement a search for the bind DN

comment:1 Changed 3 years ago by alec

  • Component changed from Addressbook to LDAP connection
  • Milestone changed from later to 0.5-beta

comment:2 Changed 3 years ago by alec

  • Resolution set to fixed
  • Status changed from new to closed

Applied in [1148c6e9].

Note: See TracTickets for help on using tickets.