projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finger server prototype
[mirror/userdir-ldap.git]
/
ud-info
diff --git
a/ud-info
b/ud-info
index
9739380
..
7159772
100755
(executable)
--- a/
ud-info
+++ b/
ud-info
@@
-45,7
+45,8
@@
AttrInfo = {"cn": ["First Name", 101],
"latitude": ["Latitude",12],
"longitude": ["Longitude",13],
"comment": ["Comment",114],
"latitude": ["Latitude",12],
"longitude": ["Longitude",13],
"comment": ["Comment",114],
- "userpassword": ["Crypted Password",115]};
+ "userpassword": ["Crypted Password",115],
+ "dnszoneentry": ["d.net Entry",116]};
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)"],
@@
-67,6
+68,7
@@
AttrPrompt = {"cn": ["Common name or first name"],
"member": ["LDAP Group Member for slapd ACLs"],
"latitude": ["XEarth latitude in ISO 6709 format - see /usr/share/zoneinfo/zone.tab or etak.com"],
"longitude": ["XEarth latitude in ISO 6709 format - see /usr/share/zoneinfo/zone.tab or etak.com"],
"member": ["LDAP Group Member for slapd ACLs"],
"latitude": ["XEarth latitude in ISO 6709 format - see /usr/share/zoneinfo/zone.tab or etak.com"],
"longitude": ["XEarth latitude in ISO 6709 format - see /usr/share/zoneinfo/zone.tab or etak.com"],
+ "dnszoneentry": ["DNS Zone fragment associated this this user"],
"labeledurl": ["Web home page"]};
# Create a map of IDs to desc,value,attr
"labeledurl": ["Web home page"]};
# Create a map of IDs to desc,value,attr
@@
-151,11
+153,8
@@
def PrintSshRSAKeys(Attrs):
First = 1;
else:
print "%-24s:" % (""),
First = 1;
else:
print "%-24s:" % (""),
- Split = string.split(x," ");
-
- if len(Split) != 4:
- del Split[0];
- print Split[0],Split[1],Split[2][:8]+".."+Split[2][-8:],string.join(Split[3:]);
+
+ print FormatSSHAuth(x);
# Display all of the attributes in a numbered list
def ShowAttrs(Attrs):
# Display all of the attributes in a numbered list
def ShowAttrs(Attrs):
@@
-189,7
+188,8
@@
def ShowAttrs(Attrs):
# Change a single attribute
def ChangeAttr(Attrs,Attr):
# Change a single attribute
def ChangeAttr(Attrs,Attr):
- if (Attr == "supplementarygid" or Attr == "allowedhosts" or Attr == "member"):
+ if (Attr == "supplementarygid" or Attr == "allowedhosts" or \
+ Attr == "member" or Attr == "dnszoneentry"):
return MultiChangeAttr(Attrs,Attr);
print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));
return MultiChangeAttr(Attrs,Attr);
print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));