import string, re, time, ldap, getopt, sys, os, pwd, posix, socket;
from userdir_ldap import *;
+global Allowed;
+global CurrentHost;
+
PasswdAttrs = None;
GroupIDMap = {};
Allowed = None;
# See if this user is in the group list
def IsInGroup(DnRecord):
- global Allowed,CurrentHost;
if Allowed == None:
return 1;
if GroupIDMap.has_key(I):
GroupList[str(GroupIDMap[I])] = None;
- global Allowed,CurrentHost;
Allowed = GroupList;
CurrentHost = Split[0];