"emailForward": ["Email Forwarding",8],
"ircNick": ["IRC Nickname",9],
"onVacation": ["Vacation Message",10],
- "labledURI": ["Home Page",11],
+ "labeledURI": ["Home Page",11],
"latitude": ["Latitude",12],
"longitude": ["Longitude",13],
"icqUin": ["ICQ UIN",14],
- "privateSub": ["Debian-Private",15],
+ "jabberJID": ["Jabber ID",15],
+ "privateSub": ["Debian-Private",16],
+ "gender": ["Gender",17],
+ "birthDate": ["Date of Birth",18],
+ "mailDisableMessage": ["Mail Disabled",19],
+ "mailGreylisting": ["Mail Greylisting",20],
+ "mailCallout": ["Mail Callouts",21],
+ "mailRBL": ["Mail RBLs",22],
+ "mailRHSBL": ["Mail RHSBLs",23],
+ "mailWhitelist": ["Mail Whitelist",24],
"comment": ["Comment",116],
"userPassword": ["Crypted Password",117],
"dnsZoneEntry": ["d.net Entry",118]};
"supplementaryGid": ["Groups the user is in"],
"allowedHost": ["Grant access to certain hosts"],
"privateSub": ["Debian-Private mailing list subscription"],
+ "gender": ["ISO5218 Gender code (1=male,2=female,9=unspecified)"],
+ "birthDate": ["Date of Birth (YYYYMMDD)"],
+ "mailDisableMessage": ["Error message to return via SMTP"],
+ "mailGreylisting": ["SMTP Greylisting (TRUE/FALSE)"],
+ "mailCallout": ["SMTP Callouts (TRUE/FALSE)"],
+ "mailRBL": ["SMTP time RBL lists"],
+ "mailRHSBL": ["SMTP time RHSBL lists"],
+ "mailWhitelist": ["SMTP time whitelist from other checks"],
"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"],
- "labledURI": ["Web home page"],
+ "labeledURI": ["Web home page"],
+ "jabberJID": ["Jabber ID"],
"icqUin": ["ICQ UIN Number"]};
# Create a map of IDs to desc,value,attr
# Change a single attribute
def ChangeAttr(Attrs,Attr):
if (Attr == "supplementaryGid" or Attr == "allowedHost" or \
- Attr == "member" or Attr == "dnsZoneEntry"):
+ Attr == "member" or Attr == "dnsZoneEntry" or Attr == "mailWhitelist" or \
+ Attr == "mailRBL" or Attr == "mailRHSBL"):
return MultiChangeAttr(Attrs,Attr);
print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));
User = pwd.getpwuid(os.getuid())[0];
BindUser = User;
# Process options
-(options, arguments) = getopt.getopt(sys.argv[1:], "nu:c:a:r")
+try:
+ (options, arguments) = getopt.getopt(sys.argv[1:], "nu:c:a:r")
+except getopt.GetoptError, data:
+ print data
+ sys.exit(1)
+
for (switch, val) in options:
if (switch == '-u'):
User = val;