projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d443df6
)
Act on sudopassword confirms even if nothing else gets touched
author
Peter Palfrader
<peter@palfrader.org>
Sun, 9 Feb 2014 20:14:01 +0000
(21:14 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 9 Feb 2014 20:14:01 +0000
(21:14 +0100)
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
fdc3cfd
..
2aae92b
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-615,7
+615,7
@@
def HandleChange(Reply,DnRecord,Key):
# Connect to the ldap server
l = connect_to_ldap_and_check_if_locked(DnRecord)
# Connect to the ldap server
l = connect_to_ldap_and_check_if_locked(DnRecord)
- if CommitChanges == 1 and len(
Attrs
) > 0: # only if we are still good to go
+ if CommitChanges == 1 and len(
SudoPasswd
) > 0: # only if we are still good to go
try:
Res = FinishConfirmSudopassword(l, GetAttr(DnRecord,"uid"), Attrs)
if not Res is None:
try:
Res = FinishConfirmSudopassword(l, GetAttr(DnRecord,"uid"), Attrs)
if not Res is None: