[PATCH] pdb_ldap: Use lp_ldap_group_suffix

Christof Schmitt christof.schmitt at us.ibm.com
Mon Jul 9 14:55:28 MDT 2012


The current code in pdb_ldap uses the generic ldap_suffix for all
queries on the LDAP server. With this approach, the LDAP server
has to look at all user, machine and group records for all
queries. The attached patch changes the group queries to use the
lp_ldap_group_suffix instead.

I tried to also do the same for user and machine records, but
user and machine records can use different suffixes and there is
no easy way to distinguish between them. Querying both suffixes,
user and machine, would defeat the goal of reducing the load on
the LDAP server, so this patch only uses the group suffix.


Regards,

Christof Schmitt || IBM || SONAS System Development || Tucson, AZ
christof.schmitt at us.ibm.com  ||  +1-520-799-2469  (T/L: 321-2469)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pdb_ldap-Use-lp_ldap_group_suffix.patch
Type: application/octet-stream
Size: 7401 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120709/1ab73c03/attachment.obj>


More information about the samba-technical mailing list