Guest User

LDAP USERS

a guest
Aug 17th, 2010
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.25 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <component name="org.nuxeo.ecm.directory.ldap.storage.users">
  4.   <implementation class="org.nuxeo.ecm.directory.ldap.LDAPDirectoryDescriptor" />
  5.   <implementation class="org.nuxeo.ecm.directory.ldap.LDAPServerDescriptor" />
  6.   <require>org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory</require>
  7.  
  8.   <!-- the groups SQL directories are required to make this bundle work -->
  9.   <require>org.nuxeo.ecm.directory.sql.storage</require>
  10.  
  11.   <extension target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory"
  12.    point="servers">
  13.  
  14.     <!-- Configuration of a server connection
  15.  
  16.      A single server declaration can point to a cluster of replicated
  17.      servers (using OpenLDAP's slapd + sluprd for instance). To leverage
  18.      such a cluster and improve availability, please provide one
  19.      <ldapUrl/> tag for each replica of the cluster.
  20.    -->
  21.     <server name="default">
  22.  
  23.       <ldapUrl>ldap://10.1.11.192:389</ldapUrl>
  24.       <!-- Optional servers from the same cluster for failover
  25.        and load balancing:
  26.  
  27.        <ldapUrl>ldap://server2:389</ldapUrl>
  28.        <ldapUrl>ldaps://server3:389</ldapUrl>
  29.  
  30.        "ldaps" means TLS/SSL connection.
  31.      -->
  32.  
  33.       <!-- Credentials used by Nuxeo5 to browse the directory, create
  34.        and modify entries.
  35.  
  36.        Only the authentication of users (bind) use the credentials entered
  37.        through the login form if any.
  38.      -->
  39.       <bindDn>uid=admin,ou=people,dc=tierradelfuego,dc=gov,dc=ar</bindDn>
  40.       <bindPassword>xxx</bindPassword>
  41.     </server>
  42.  
  43.   </extension>
  44.  
  45.   <extension target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory"
  46.    point="directories">
  47.  
  48.     <directory name="userDirectory">
  49.       <server>default</server>
  50.       <schema>user</schema>
  51.       <idField>username</idField>
  52.       <passwordField>password</passwordField>
  53.  
  54.       <searchBaseDn>ou=people,dc=tierradelfuego,dc=gov,dc=ar</searchBaseDn>
  55.       <searchClass>person</searchClass>
  56.       <!-- To additionally restricte entries you can add an
  57.        arbitrary search filter such as the following:
  58.  
  59.        <searchFilter>(&amp;(sn=toto*)(myCustomAttribute=somevalue))</searchFilter>
  60.  
  61.        Beware that "&" writes "&amp;" in XML.
  62.      -->
  63.  
  64.       <!-- use subtree if the people branch is nested -->
  65.       <searchScope>onelevel</searchScope>
  66.  
  67.       <!-- using 'subany', search will match *toto*. use 'subfinal' to
  68.        match *toto and 'subinitial' to match toto*. subinitial is the
  69.        default  behaviour-->
  70.       <substringMatchType>subany</substringMatchType>
  71.  
  72.       <readOnly>false</readOnly>
  73.  
  74.       <!-- comment <cache* /> tags to disable the cache -->
  75.       <!-- cache timeout in seconds -->
  76.       <cacheTimeout>3600</cacheTimeout>
  77.  
  78.       <!-- maximum number of cached entries before global invalidation -->
  79.       <cacheMaxSize>1000</cacheMaxSize>
  80.  
  81.       <!--
  82.           If the id field is not returned by the search, we set it with the searched entry, probably the login.
  83.           Before setting it, you can change its case. Accepted values are 'lower' and 'upper',
  84.           anything else will not change the case.
  85.      -->
  86.       <missingIdFieldCase>lower</missingIdFieldCase>
  87.  
  88.       <!-- Maximum number of entries returned by the search -->
  89.       <querySizeLimit>200</querySizeLimit>
  90.  
  91.       <!-- Time to wait for a search to finish. 0 to wait indefinitely -->
  92.       <queryTimeLimit>0</queryTimeLimit>
  93.  
  94.       <creationBaseDn>ou=people,dc=tierradelfuego,dc=gov,dc=ar</creationBaseDn>
  95.       <creationClass>top</creationClass>
  96.       <creationClass>person</creationClass>
  97.       <creationClass>organizationalPerson</creationClass>
  98.       <creationClass>inetOrgPerson</creationClass>
  99.  
  100.       <rdnAttribute>uid</rdnAttribute>
  101.       <fieldMapping name="username">uid</fieldMapping>
  102.       <fieldMapping name="password">userPassword</fieldMapping>
  103.       <fieldMapping name="firstName">givenName</fieldMapping>
  104.       <fieldMapping name="lastName">sn</fieldMapping>
  105.       <fieldMapping name="company">o</fieldMapping>
  106.       <fieldMapping name="email">mail</fieldMapping>
  107.  
  108.       <references>
  109.  
  110.         <inverseReference field="groups" directory="groupDirectory"
  111.          dualReferenceField="members" />
  112.  
  113.       </references>
  114.  
  115.     </directory>
  116.  
  117.   </extension>
  118.  
  119. </component>
Advertisement
Add Comment
Please, Sign In to add comment