Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > Providers > LDAPRealm

anvil.server.ldap.LDAPRealm

property default description
contextpool (required) Indicates the name of visible pool pointing to naming context pool.
prefix (required) DN prefix (actually a suffix) of root containing ou=groups and ou=users.(For example: o=deftit.com)

LDAPRealm uses default groupofuniquenames objects for groups and inetorgperson for users.

Inetorgperson attribute mappings:
FieldParam nameAttribute
 (same as uid)cn
(See *)ctz.displayNamedisplayName
(used to store user permissions) description
(used to store other variables) physicalDeliveryOfficeName
First Namectz.firstNamegivenname
Surnamectz.surNamesn
Phone(w)ctz.workPhonetelephoneNumber
Phone(h)ctz.homePhonehomePhone
Mobile phonectz.mobilePhonemobile
Postal addr(h)ctz.homeAddressst
Postal city(h)ctz.homeCityhomePostalAddr
Postal code(h)ctz.homePostalCoderoomNumber
Postal addr(w)ctz.workAddressstreet
Postal city(w)ctz.workCitypostalAddress
Postal code(w)ctz.workPostalCodepostalCode
PO box(w)ctz.workPOBoxpostOfficeBox
Usernamectz.usernameuid
Fax numberctz.faxfacsimileTelephoneNumber
Emailctz.emailmail
Homepagectz.homepagelabeleduri
IPctz.iptelexNumber
Companyctz.company 
Titlectz.title 
* Display name is a "synthetic" field that generated from first+lastname (or just username). Field is read-only.

Note. Realm support Citizen.searchCitizenByVariable() only for those fields that have an attribute mapped to them. Other fields are stored in anvil serialized form (inside one attribute) and cannot be searched.

Permissions
User permissions are stored in multiattribute (description) using following format:
[permission name]|[name]|[actions]

For example: 'tool|creator.document.**|read,write'

Following permissions can be used: tool, runtime, file, socket, java, pool, import, realm, namespace and all

See also  | Providers
What's new | Anvil