X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-info;h=c77b2d21d6dba53dd6ee439c01310d48582aca15;hb=2525bf73603cb6487cfcea096e2dc347ad360394;hp=4b0c10399da88fc545c0e28013ed51619892c886;hpb=32e0c5640dc72acf4c362fd373f26be78a45a277;p=mirror%2Fuserdir-ldap.git diff --git a/ud-info b/ud-info index 4b0c103..c77b2d2 100755 --- a/ud-info +++ b/ud-info @@ -16,10 +16,8 @@ # database # -r Enable 'root' functions, do this if your uid has access to # restricted variables. -# -# http://www.geocode.com/eagle.html-ssi -import string, time, posix, pwd, sys, getopt, ldap, crypt, whrandom, readline, copy; +import string, time, os, pwd, sys, getopt, ldap, crypt, whrandom, readline, copy; from userdir_ldap import *; RootMode = 0; @@ -237,7 +235,7 @@ def MultiChangeAttr(Attrs,Attr): print; # Main program starts here -User = pwd.getpwuid(posix.getuid())[0]; +User = pwd.getpwuid(os.getuid())[0]; BindUser = User; # Process options (options, arguments) = getopt.getopt(sys.argv[1:], "nu:c:a:r")