FIXME Two event contexts

Andrew Bartlett abartlet at samba.org
Wed Jul 15 18:48:15 MDT 2009


On Wed, 2009-07-15 at 15:06 +0300, Zahari Zahariev wrote:
> Hello Jelmer, Andrew & Samba,
> 
> I am currently working on integrating Kerberos capabilities for Python unittesting.
> 
> My first obstacle is to create Python wrapping for
> libnet_ChangePassword() function in
> source4/libnet/libnet_passwd.c:242. I understood Python binding should
> be in source4/libnet/py_net.c and should be similar to py_net_join().
> Unfortunately I found FIXME there that says:
> 
> /* FIXME: we really need to get a context from the caller or we may end
>  * up with 2 event contexts */
> 
> Should I worry about this?

No.  This is not a problem for python scripts, only possibly a problem
for python embeded in the Samba daemon (which we don't do at the
moment). 

> P.S. What are the required arguments for libnet_ChangePassword()? 

> I found: const char *kwnames[] = { "account_name", "domain_name", "oldpassword", "newpassword", "level" }  

Seems like reasonable arguments to me. 

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090716/15ff9684/attachment.pgp>


More information about the samba-technical mailing list