ldb python bindings
Andrew Bartlett
abartlet at samba.org
Sat Feb 19 15:36:10 MST 2011
On Sat, 2011-02-19 at 20:30 +0100, Jelmer Vernooij wrote:
> On Sun, Feb 20, 2011 at 08:24:04AM +1100, Andrew Bartlett wrote:
> > On Sat, 2011-02-19 at 19:18 +0300, Matthieu Patou wrote:
> > > Hello Andrew (T), Andrew (B) and Jelmer,
> > >
> > > Here at
> > > http://git.samba.org/?p=mat/samba.git;a=shortlog;h=refs/heads/pybindings
> > > I have a couple of patches for making ldb.search(...) returning an
> > > object and not only a list of ldb_message so that we can access controls
> > > and referrals as well.
> > >
> > > Following the remarks of Tridge I moved the ldb_control to string in
> > > pyldb.c and now jelmer is asking me to do the opposite.
> > >
> > > Can you give a final version and if it can avoid me one more time to
> > > rewrite the whole stuff it would be just perfect !
> > I think that Jelmer and I would be in agreement that the patch as is
> > looks great, but that you just need to put the ldb_control_to_string()
> > function, as is, into ldb_controls.c code, as a private function (no
> > need to add it to the public headers at this point).
> Yep.
>
> Actually, the function will have to be public, as pyldb only uses the
> public interface of libldb. That doesn't seem to bad though, as
> a way to serialize controls might be useful to other ldb users
> as well.
Great, I'm glad we can agree on this.
I wasn't aware of exactly which interface pyldb used, and I've been keen
not to extend the published ldb API unless I have to.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
More information about the samba-technical
mailing list