# in the directory but not in the key ring will be removed from the
# directory.
-import string, re, time, ldap, getopt, sys, pwd, posix;
+import string, re, time, ldap, getopt, sys, pwd, os;
from userdir_ldap import *;
from userdir_gpg import *;
UnknownMap[Split[0]] = string.strip(Split[1]);
# Process options
-AdminUser = pwd.getpwuid(posix.getuid())[0];
+AdminUser = pwd.getpwuid(os.getuid())[0];
(options, arguments) = getopt.getopt(sys.argv[1:], "au:m:n")
for (switch, val) in options:
if (switch == '-u'):
NoAct = 0;
if len(arguments) == 0:
print "Give some keyrings to probe";
- os.exit(0);
+ sys.exit(0);
# Main program starts here