Fwd: Samba and referrals in LDAP
Marshall, Joshua
MarshallJ at switch.aust.com
Sun Mar 3 22:35:03 GMT 2002
Hi Andrew,
I just had a look at version 1.23 (latest HEAD) via the cvsweb... the
patch I sent you has most of its code stolen from ldapsam_connect_system() which actually has the same static variables in the latest version (or
am I just confused from your email).
If you're looking at taking these static variables out, you could get the
code to call fetch_ldapsam_pw() every time it had to do a rebind. This would take out the necessity to
use static variables. I wouldn't think that fetch_ldapsam_pw() would take
an incredibly long time, and a rebind only occurs on updates, which are
infrequent.
Regards,
Joshua Marshall
Systems Support Engineer
Union Switch & Signal Pty Ltd
Ph: (07) 3868 9371
Fx: (07) 3268 2219
Andrew Bartlett <abartlet at pcug.org.au>
Sent by: abartlet at pcug.org.au
03/03/2002 07:43 PM
To: "Marshall, Joshua" <MarshallJ at switch.aust.com>
cc: samba-patches at samba.org, samba-technical at samba.org
Subject: Re: Fwd: Samba and referrals in LDAP
"Marshall, Joshua" wrote:
>
> Hi All,
>
> I'd like to submit this patch for inclusion into the samba code. It is a
> patch which is clean against samba 2.2.3a.
While it looks fine for 2.2, I was looking to apply it to HEAD. This
presents a problem: HEAD doesn't use static varialbes in the passdb
code any more, and I would like to keep it that way - is there any way
to get ldap to store a void* pointer to keep this stuff attached to, or
some other way to do this without static variables?
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba-technical
mailing list