lsa.string - smbpasswd for samba4

Johannes johannes_samba at aon.at
Wed Jan 7 20:51:06 GMT 2009


> You should be able to use the Samr DCE/RPC bindings to connect to the
> local server. The SAMR interface should be accisable as
> samba.dcerpc.samr. That should allow you to change the password of a
> user as long as you know the users old password.
>
> Cheers,
>
> Jelmer
>

hi,

i've now take a look at the DCERPC binding, thanks this was a good idea.

but i'm facing some problems with python and the lsa.String type.

when i try to run the script

"scripting/python/examples/samr.py ncacn_ip_tcp:127.0.0.1"
i also get messages like:



Found 2 domains
        <lsa.String talloc object at 0x81b8794> (0)
        <lsa.String talloc object at 0x81b87a0> (1)
Testing domain <lsa.String talloc object at 0x81b8794>



i'm unable to convert this lsa-strings to UTF8 (or other strings), also
with the latest GIT-version. this a problem with the python-modules? i
think even samr.py should not work in this way, should it?

any ideas?

regards, johannes




More information about the samba-technical mailing list