Problem with SAMR pipe (ChangePassword() Python binding)
Nadezhda Ivanova
nadezhda.ivanova at postpath.com
Sat Aug 22 10:33:12 MDT 2009
Hi all,
I played a bit with libnet_ChangePassword and here is what I get:
The error message that happens to Zahari below does not appear if you sue a sudoer, so it's a basic permissions issue. However, I get a crash, bith when using Zahari's python binding and when I use "net password set" or "net password change"
[root at dev bin]# ./net password change Administrator
Password for [RUMBA\root]:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 6 in pid 28516 (4.0.0alpha9-GIT-6f69f16)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PANIC: internal error
BACKTRACE: 49 stack frames:
#0 ./net(call_backtrace+0x2b) [0x865a3ff]
#1 ./net(smb_panic+0x296) [0x865a781]
#2 ./net [0x865a94c]
#3 ./net(fault_setup+0) [0x865a981]
#4 [0x52f400]
#5 /lib/libc.so.6(abort+0x188) [0x828028]
#6 ./net [0x86716be]
#7 ./net [0x8671718]
#8 ./net [0x8671817]
#9 ./net(talloc_get_name+0x1d) [0x867292b]
#10 ./net(talloc_check_name+0x34) [0x86729af]
#11 ./net [0x8115297]
#12 ./net(composite_error+0xc1) [0x82149d6]
#13 ./net(composite_is_ok+0x37) [0x8214a57]
#14 ./net [0x814e237]
#15 ./net [0x814e279]
#16 ./net(smbcli_transport_dead+0x15c) [0x815705a]
#17 ./net [0x8156bb4]
#18 ./net [0x86724d1]
#19 ./net [0x8672652]
#20 ./net [0x8672652]
#21 ./net [0x8672652]
#22 ./net [0x8672652]
#23 ./net [0x8672652]
#24 ./net(_talloc_free+0xbe) [0x8672de9]
#25 ./net(dcerpc_pipe_connect_b_recv+0x89) [0x8116b6a]
#26 ./net [0x80c08c6]
#27 ./net(composite_error+0xc1) [0x82149d6]
#28 ./net [0x8116800]
#29 ./net(tevent_common_loop_timer_delay+0x195) [0x86478ad]
#30 ./net [0x8649d97]
#31 ./net [0x864a549]
#32 ./net(_tevent_loop_once+0xdf) [0x86469ff]
#33 ./net(composite_wait+0x44) [0x821484e]
#34 ./net [0x80c0f87]
#35 ./net(libnet_RpcConnect_recv+0x88) [0x80c22fa]
#36 ./net(libnet_RpcConnect+0x5e) [0x80c23ba]
#37 ./net [0x80be820]
#38 ./net(libnet_ChangePassword+0x76) [0x80bf007]
#39 ./net [0x80bef75]
#40 ./net(libnet_ChangePassword+0x51) [0x80befe2]
#41 ./net [0x80bc8d8]
#42 ./net(net_run_function+0xc5) [0x80bbfb9]
#43 ./net(net_password+0x3f) [0x80bcc8e]
#44 ./net(net_run_function+0xc5) [0x80bbfb9]
#45 ./net [0x80bc4a4]
#46 ./net(main+0x22) [0x80bc55a]
#47 /lib/libc.so.6(__libc_start_main+0xe6) [0x8125d6]
#48 ./net [0x80bbe61]
Aborted
Any ideas what might be the cause of this?
Regards,
Nadezhda Ivanova
> -----Original Message-----
> From: samba-technical-bounces at lists.samba.org [mailto:samba-technical-
> bounces at lists.samba.org] On Behalf Of Zahari Zahariev
> Sent: Wednesday, August 12, 2009 5:16 PM
> To: samba-technical at lists.samba.org
> Cc: Andrew Bartlett
> Subject: Problem with SAMR pipe (ChangePassword() Python binding)
>
> Hello Samba4,
>
> I am preparing a Python binding for the samr_ChangePassword() function.
> It took quite a while (usual reasons no know-how), but finally Andrew
> helped me out by taking a 'magic look' and refactoring py_net_join() in
> samba4/libbet/py_net.c.
>
> I copied the same approach to passing credentials along but then I
> bumped across another error:
>
> python lib/ldb/tests/python/samr-test.py <Windows_2003_AD_IP>
> -UAdministrator%old123@
> test: test_samr (__main__.SamrTests)
> baseDN: DC=zahari,DC=tk
> ['ChangePassword', 'Join', '__doc__', '__file__', '__name__']
> Unable to setup messaging listener for
> '/usr/local/samba/private/smbd.tmp/messaging/msg.0.193676647.0':NT_STATUS_
> OBJECT_NAME_NOT_FOUND
> error: test_samr (__main__.SamrTests) [
> Traceback (most recent call last):
> File "lib/ldb/tests/python/samr-test.py", line 79, in test_samr
> newpassword="samba123@", level=1, credentials=creds)
> RuntimeError: Connection to SAMR pipe of PDC of domain 'ZAHARI' failed:
> NT_STATUS_INVALID_PARAMETER
> ]
>
> I am providing the patch that contains my current progress.
>
> Regards,
>
> --Zahari
>
More information about the samba-technical
mailing list