projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add copyright update
[mirror/userdir-ldap.git]
/
ud-info
diff --git
a/ud-info
b/ud-info
index
ac8f2af
..
e533a9e
100755
(executable)
--- a/
ud-info
+++ b/
ud-info
@@
-17,7
+17,7
@@
# -r Enable 'root' functions, do this if your uid has access to
# restricted variables.
# -r Enable 'root' functions, do this if your uid has access to
# restricted variables.
-import
string,
time, os, pwd, sys, getopt, ldap, crypt, readline, copy;
+import time, os, pwd, sys, getopt, ldap, crypt, readline, copy;
from userdir_ldap import *;
RootMode = 0;
from userdir_ldap import *;
RootMode = 0;
@@
-55,7
+55,8
@@
AttrInfo = {"cn": ["First Name", 101],
"mailWhitelist": ["Mail Whitelist",24],
"comment": ["Comment",116],
"userPassword": ["Crypted Password",117],
"mailWhitelist": ["Mail Whitelist",24],
"comment": ["Comment",116],
"userPassword": ["Crypted Password",117],
- "dnsZoneEntry": ["d.net Entry",118]};
+ "dnsZoneEntry": ["d.net Entry",118],
+ "VoIP": ["VoIP Address",119]};
AttrPrompt = {"cn": ["Common name or first name"],
"mn": ["Middle name (or initial if it ends in a dot)"],
AttrPrompt = {"cn": ["Common name or first name"],
"mn": ["Middle name (or initial if it ends in a dot)"],
@@
-89,7
+90,8
@@
AttrPrompt = {"cn": ["Common name or first name"],
"dnsZoneEntry": ["DNS Zone fragment associated this this user"],
"labeledURI": ["Web home page"],
"jabberJID": ["Jabber ID"],
"dnsZoneEntry": ["DNS Zone fragment associated this this user"],
"labeledURI": ["Web home page"],
"jabberJID": ["Jabber ID"],
- "icqUin": ["ICQ UIN Number"]};
+ "icqUin": ["ICQ UIN Number"],
+ "VoIP": ["VoIP Address"]};
# Create a map of IDs to desc,value,attr
OrderedIndex = {};
# Create a map of IDs to desc,value,attr
OrderedIndex = {};
@@
-229,7
+231,7
@@
def MultiChangeAttr(Attrs,Attr):
Attrs[1][Attr].sort();
print "Old values: ",Attrs[1][Attr];
Attrs[1][Attr].sort();
print "Old values: ",Attrs[1][Attr];
- Mode =
string.upper(raw_input("[D]elete or [A]dd? "));
+ Mode =
raw_input("[D]elete or [A]dd? ").upper()
if (Mode != 'D' and Mode != 'A'):
return;
if (Mode != 'D' and Mode != 'A'):
return;