"icqUin": ["ICQ UIN",14],
"jabberJID": ["Jabber ID",15],
"privateSub": ["Debian-Private",16],
- "gender": ["Gender",17],
"birthDate": ["Date of Birth",18],
"mailDisableMessage": ["Mail Disabled",19],
"mailGreylisting": ["Mail Greylisting",20],
"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)"],
SSHFingerprint = re.compile('^(\d+) ([0-9a-f\:]{47}|SHA256:[0-9A-Za-z/+]{43}) (.+)$')
SSHRSA1Match = re.compile('^^(.* )?\d+ \d+ \d+')
-GenderTable = {"male": '1',
- "1": '1',
- "female": '2',
- "2": '2',
- "unspecified": '9',
- "9": '9',
-};
-
ArbChanges = {"c": "..",
"l": ".*",
"facsimileTelephoneNumber": ".*",
"mailCallout": "^(TRUE|FALSE)$",
"mailDefaultOptions": "^(TRUE|FALSE)$",
"VoIP": ".*",
- "gender": "^(1|2|9|male|female|unspecified)$",
"mailContentInspectionAction": "^(reject|blackhole|markup)$",
};
raise UDFormatError, "Item does not match the required format"+ArbChanges[attrName];
value = G[1];
- if attrName == 'gender':
- if G[1] not in GenderTable:
- raise UDFormatError, "Gender not found in table"
- value = GenderTable[G[1]]
# if attrName == 'birthDate':
# (re.match("^([0-9]{4})([01][0-9])([0-3][0-9])$",G[1]) {
# Indexing options
index gecos,cn,sn,uid,ircNick,hostname,emailForward pres,eq,sub,approx
index keyfingerprint,homeDirectory,objectClass,loginShell,supplementaryGid pres,eq
-index c,gender,dnsZoneEntry,birthDate,gidNumber,uidNumber pres,eq
+index c,dnsZoneEntry,birthDate,gidNumber,uidNumber pres,eq
# Don't limit queries to the default of 500
sizelimit 10000
by * break
# allow users write access to an explicit subset of their fields
-access to attrs=c,l,loginShell,ircNick,labeledURI,icqUIN,jabberJID,onVacation,birthDate,mailDisableMessage,gender,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions,facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,latitude,longitude,VoIP,userPassword,sudoPassword,webPassword,rtcPassword,bATVToken
+access to attrs=c,l,loginShell,ircNick,labeledURI,icqUIN,jabberJID,onVacation,birthDate,mailDisableMessage,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions,facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,latitude,longitude,VoIP,userPassword,sudoPassword,webPassword,rtcPassword,bATVToken
by self write
by * break
by * none
# debian.org readable, authenticated user readable
-access to attrs=activity-pgp,activity-from,c,l,loginShell,onVacation,birthDate,mailDisableMessage,gender,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions
+access to attrs=activity-pgp,activity-from,c,l,loginShell,onVacation,birthDate,mailDisableMessage,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions
by peername.ip=127.0.0.1 read
by domain=alioth.debian.org none
by domain.subtree=@@DOMAIN@@ read
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-attributetype ( 1.3.6.1.4.1.9586.100.4.2.30
- NAME 'gender'
- DESC 'ISO 5218 representation of human gender'
- EQUALITY integerMatch
- SINGLE-VALUE
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{1} )
+#attributetype ( 1.3.6.1.4.1.9586.100.4.2.30
+# NAME 'gender'
+# DESC 'ISO 5218 representation of human gender'
+# EQUALITY integerMatch
+# SINGLE-VALUE
+# SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{1} )
attributetype ( 1.3.6.1.4.1.9586.100.4.2.31
NAME 'birthDate'
dnsZoneEntry $ emailForward $ icqUin $ ircNick $
jabberJID $ keyFingerPrint $ latitude $ longitude $ mn $
onVacation $ privateSub $ sshRSAAuthKey $ supplementaryGid $
- access $ gender $ birthDate $ mailCallout $ mailGreylisting $
+ access $ birthDate $ mailCallout $ mailGreylisting $
mailRBL $ mailRHSBL $ mailWhitelist $ VoIP $ mailContentInspectionAction $
bATVToken $ mailDefaultOptions $ mailPreserveSuffixSeparator
) )