daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0"?>
  2.  
  3. <!-- default-ldap-users-directory-config.xml -->
  4.  
  5. <component name="org.nuxeo.ecm.directory.ldap.storage.users">
  6.   <require>org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory</require>
  7.   <require>org.nuxeo.ecm.directory.sql.storage</require>
  8.  
  9.   <extension target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="servers">
  10.     <server name="ldapserver">          
  11.       <ldapUrl>ldap://ds1.example.com:3268</ldapUrl>
  12.       <bindDn>serviceaccount@example.com</bindDn>
  13.       <bindPassword>password</bindPassword>
  14.     </server>        
  15.   </extension>
  16.  
  17.  
  18.   <extension target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="directories">
  19.    
  20.     <directory name="userLdapDirectory">
  21.       <server>ldapserver</server>
  22.       <schema>user</schema>
  23.       <idField>sAMAccountName</idField>
  24.       <passwordField>password</passwordField>
  25.      
  26.       <searchBaseDn>dc=example,dc=com</searchBaseDn>
  27.       <searchClass>user</searchClass>
  28.      
  29.       <searchScope>subtree</searchScope>
  30.       <substringMatchType>subany</substringMatchType>
  31.      
  32.       <readOnly>true</readOnly>
  33.  
  34.       <cacheTimeout>3600</cacheTimeout>
  35.       <cacheMaxSize>1000</cacheMaxSize>
  36.       <missingIdFieldCase>lower</missingIdFieldCase>
  37.       <querySizeLimit>200</querySizeLimit>
  38.       <queryTimeLimit>0</queryTimeLimit>
  39.      
  40.       <creationBaseDn>dc=example,dc=com</creationBaseDn>
  41.       <creationClass>top</creationClass>
  42.       <creationClass>person</creationClass>
  43.       <creationClass>organizationalPerson</creationClass>
  44.       <creationClass>inetOrgPerson</creationClass>
  45.      
  46.       <rdnAttribute>sAMAccountName</rdnAttribute>
  47.       <fieldMapping name="username">sAMAccountName</fieldMapping>
  48.       <fieldMapping name="password">userPassword</fieldMapping>
  49.       <fieldMapping name="firstName">givenName</fieldMapping>
  50.       <fieldMapping name="lastName">sn</fieldMapping>
  51.       <fieldMapping name="company">o</fieldMapping>
  52.       <fieldMapping name="email">mail</fieldMapping>
  53.  
  54.       <references>
  55.         <inverseReference field="groups" directory="groupLdapDirectory" dualReferenceField="members" />
  56.       </references>  
  57.  
  58.     </directory>
  59.   </extension>
  60.  
  61.   <extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager">
  62.     <userManager>
  63.       <defaultAdministratorId>bob</defaultAdministratorId>
  64.       <administratorsGroup>Domain Admins</administratorsGroup>
  65.       <defaultGroup>Nuxeo Users</defaultGroup>
  66.       <users>
  67.         <directory>userLdapDirectory</directory>
  68.       </users>
  69.       <groups>
  70.         <directory>groupLdapDirectory</directory>
  71.       </groups>
  72.     </userManager>
  73.   </extension>
  74.  
  75. </component>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top