X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-info;fp=ud-info;h=a94ff91a328acdc8326193df17462a51bc34964a;hp=795584bafec18d71f3c5d6442649c451cc62e3e0;hb=86a2cb531c55baec854944024f243e4d9def08e9;hpb=c0d17c415af9716cca033e6dab59aaa4d713c06e diff --git a/ud-info b/ud-info index 795584b..a94ff91 100755 --- a/ud-info +++ b/ud-info @@ -116,7 +116,10 @@ AttrPrompt = {"cn": ["Common name or first name"], "labeledURI": ["Web home page"], "jabberJID": ["Jabber ID"], "icqUin": ["ICQ UIN Number"], - "VoIP": ["VoIP Address"]}; + "VoIP": ["VoIP Address"], + "accountStatus": ["DD status"], + "accountComment": ["DD status comment"], + }; # Create a map of IDs to desc,value,attr OrderedIndex = {}; @@ -125,6 +128,10 @@ for at in AttrInfo.keys(): OrderedIndex[AttrInfo[at][1]] = [AttrInfo[at][0], "", at]; OrigOrderedIndex = copy.deepcopy(OrderedIndex); +for id in OrderedIndex: + if not AttrPrompt.has_key( OrderedIndex[id][2] ): + print "Warning: no AttrPrompt for %s"%(id) + # Show shadow information def PrintShadow(Attrs): Changed = int(GetAttr(Attrs,"shadowLastChange","0"));