s4:scripting/devel: add repl_cleartext_pwd.py script
commit73d96ed239a1616f1074186d5ba0d02f716cae0e
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Dec 2011 15:28:08 +0000 (15 16:28 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Jan 2012 18:06:06 +0000 (9 19:06 +0100)
treec32ee79c18e6fe32a5c97e189e36cf0bab8bafd8
parent88258c3b9337b7c384871d159ea4f12c280e1b2e
s4:scripting/devel: add repl_cleartext_pwd.py script

This is useful to sync passwords from an AD domain.

 $
 $ source4/scripting/devel/repl_cleartext_pwd.py \
  -Uadministrator%A1b2C3d4 \
  172.31.9.219 DC=bla,DC=base /tmp/cookie cleartext_utf8 131085 displayName
 # starting at usn[0]
 dn: CN=Test User1,CN=Users,DC=bla,DC=base
 cleartext_utf8: A1b2C3d4
 displayName:: VABlAHMAdAAgAFUAcwBlAHIAMQA=

 # up to usn[16449]
 $
 $ source4/scripting/devel/repl_cleartext_pwd.py \
  -Uadministrator%A1b2C3d4
  172.31.9.219 DC=bla,DC=base /tmp/cookie cleartext_utf8 131085 displayName
 # starting at usn[16449]
 # up to usn[16449]
 $

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan  9 19:06:06 CET 2012 on sn-devel-104
source4/scripting/devel/repl_cleartext_pwd.py [new file with mode: 0755]