projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for python 2.1
[mirror/userdir-ldap.git]
/
ud-generate
diff --git
a/ud-generate
b/ud-generate
index
7011dd0
..
a0c735d
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-5,6
+5,9
@@
import string, re, time, ldap, getopt, sys, os, pwd, posix, socket;
from userdir_ldap import *;
import string, re, time, ldap, getopt, sys, os, pwd, posix, socket;
from userdir_ldap import *;
+global Allowed;
+global CurrentHost;
+
PasswdAttrs = None;
GroupIDMap = {};
Allowed = None;
PasswdAttrs = None;
GroupIDMap = {};
Allowed = None;
@@
-24,7
+27,6
@@
def DoLink(From,To,File):
# See if this user is in the group list
def IsInGroup(DnRecord):
# See if this user is in the group list
def IsInGroup(DnRecord):
- global Allowed,CurrentHost;
if Allowed == None:
return 1;
if Allowed == None:
return 1;
@@
-561,7
+563,6
@@
while(1):
if GroupIDMap.has_key(I):
GroupList[str(GroupIDMap[I])] = None;
if GroupIDMap.has_key(I):
GroupList[str(GroupIDMap[I])] = None;
- global Allowed,CurrentHost;
Allowed = GroupList;
CurrentHost = Split[0];
Allowed = GroupList;
CurrentHost = Split[0];