Merge lp:~kernevil/samba/devel into lp:samba
Proposed by
Kernevil
Status: | Needs review |
---|---|
Proposed branch: | lp:~kernevil/samba/devel |
Merge into: | lp:samba |
Diff against target: |
122 lines (+26/-9) 2 files modified
source4/scripting/python/samba/netcmd/user.py (+5/-2) source4/scripting/python/samba/samdb.py (+21/-7) |
To merge this branch: | bzr merge lp:~kernevil/samba/devel |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samba Team | Pending | ||
Review via email: mp+93744@code.launchpad.net |
Description of the change
Added switch "--enable-
To post a comment you must log in.
Unmerged revisions
- 25250. By Kernevil
-
Fix wrong function call
- 25249. By Kernevil
-
Merge trunk revs 25321..25400
- 25248. By Kernevil
-
* Fix spell errors on comments
* Replace 'disable_reversible_ encryption' method by a boolean parameter on
method 'set_reversible_encryption' - 25247. By Kernevil
-
Merge trunk revs 318..320
- 25246. By Kernevil
-
Merge trunk
- 25245. By Kernevil
-
Merge trunk
- 25244. By Kernevil
-
Merge parent branch
- 25243. By Kernevil
-
Add '--enable-
reversible- encryption' to user creation'
Hi,
Thanks for the MP.
On Sun, Feb 19, 2012 at 07:11:20PM -0000, Kernevil wrote: reversible- encryption" when creating an user. This sets the UF_ENCRYPTED_ TEXT_PASSWORD_ ALLOWED flag on the user account, storing the password in clear text inside the "supplementalCr edentials" blob. This is needed to sync passwords with external applications. scripting/ python/ samba/samdb. py' scripting/ python/ samba/samdb. py 2011-12-07 02:09:08 +0000 scripting/ python/ samba/samdb. py 2012-02-19 19:10:26 +0000 UF_ACCOUNTDISAB LE | samba.dsdb. UF_PASSWD_ NOTREQD userAccountFlag s(search_ filter, flags, on=False) reversible_ encryption( self, search_filter): /samaccountname /
> Added switch "--enable-
> --
> === modified file 'source4/
> --- source4/
> +++ source4/
> @@ -104,6 +104,24 @@
> flags = samba.dsdb.
> self.toggle_
>
> + def enable_
> + """Enables reversible password encryption
> +
> + :param search_filter: LDAP filter to find the user (eg
> + samccountname=name)
s/samccountname
> + """ UF_ENCRYPTED_ TEXT_PASSWORD_ ALLOWED userAccountFlag s(search_ filter, flags, on=True) reversible_ encryption( self, search_filter): UF_ENCRYPTED_ TEXT_PASSWORD_ ALLOWED userAccountFlag s(search_ filter, flags, on=False)
> + flags = samba.dsdb.
> + self.toggle_
> +
> + def disable_
> + """Disables reversible password encryption
> +
> + :param search_filter: LDAP filter to find the user (eg
> + samccountname=name)
> + """
> + flags = samba.dsdb.
> + self.toggle_
I'm not sure if this really warrants separate methods (though I guess
it is consistent with the other methods).
Can you make this a single method with just a boolean argument userAccountFlag s(self, search_filter, flags, flags_str=None, userAccountFlag s
"enabled" or something like that?
> +
> def toggle_
> on=True, strict=False):
> """toggle_
> @@ -292,8 +310,8 @@
Cheers,
Jelmer