smbpasswd for samba4
Jelmer Vernooij
jelmer at vernstok.nl
Mon Dec 29 23:55:34 GMT 2008
Hi Johannes,
Am Sonntag, den 28.12.2008, 22:24 +0100 schrieb Johannes:
> i started modifing the provision python script in order to get some
> information how this can work.
> i can already change the passwort(s) working root privileges.
Cool!
> but of course when i run it as an different user i get:
>
> ltdb: tdb((null)): tdb_open_ex: could not open file
> /usr/local/samba/private/sam.ldb: Permission denied
> Unable to open tdb '/usr/local/samba/private/sam.ldb'
> Failed to connect to '/usr/local/samba/private/sam.ldb'
>
>
> any suggestions how to change the passwort without su-rights?
> (for a smbpasswd python script?)
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.samba.org/archive/samba-technical/attachments/20081230/b0bc0cb0/attachment.bin
More information about the samba-technical
mailing list