config.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <?php
  2. /** NOTE **
  3. ** Make sure that <?php is the FIRST line of this file!
  4. ** IE: There should NOT be any blank lines or spaces BEFORE <?php
  5. **/
  6. /**
  7. * The phpLDAPadmin config file
  8. * See: http://phpldapadmin.sourceforge.net/wiki/index.php/Config.php
  9. *
  10. * This is where you can customise some of the phpLDAPadmin defaults
  11. * that are defined in config_default.php.
  12. *
  13. * To override a default, use the $config->custom variable to do so.
  14. * For example, the default for defining the language in config_default.php
  15. *
  16. * $this->default->appearance['language'] = array(
  17. * 'desc'=>'Language',
  18. * 'default'=>'auto');
  19. *
  20. * to override this, use $config->custom->appearance['language'] = 'en_EN';
  21. *
  22. * This file is also used to configure your LDAP server connections.
  23. *
  24. * You must specify at least one LDAP server there. You may add
  25. * as many as you like. You can also specify your language, and
  26. * many other options.
  27. *
  28. * NOTE: Commented out values in this file prefixed by //, represent the
  29. * defaults that have been defined in config_default.php.
  30. * Commented out values prefixed by #, dont reflect their default value, you can
  31. * check config_default.php if you want to see what the default is.
  32. *
  33. * DONT change config_default.php, you changes will be lost by the next release
  34. * of PLA. Instead change this file - as it will NOT be replaced by a new
  35. * version of phpLDAPadmin.
  36. */
  37. /*********************************************
  38. * Useful important configuration overrides *
  39. *********************************************/
  40. /* If you are asked to put PLA in debug mode, this is how you do it: */
  41. # $config->custom->debug['level'] = 255;
  42. # $config->custom->debug['syslog'] = true;
  43. # $config->custom->debug['file'] = '/tmp/pla_debug.log';
  44. /* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
  45. to a big random string. */
  46. // $config->custom->session['blowfish'] = null;
  47. /* If your auth_type is http, you can override your HTTP Authentication Realm. */
  48. // $config->custom->session['http_realm'] = sprintf('%s %s',app_name(),'login');
  49. /* The language setting. If you set this to 'auto', phpLDAPadmin will attempt
  50. to determine your language automatically.
  51. If PLA doesnt show (all) strings in your language, then you can do some
  52. translation at http://translations.launchpad.net/phpldapadmin and download
  53. the translation files, replacing those provided with PLA.
  54. (We'll pick up the translations before making the next release too!) */
  55. // $config->custom->appearance['language'] = 'auto';
  56. /* The temporary storage directory where we will put jpegPhoto data
  57. This directory must be readable and writable by your web server. */
  58. // $config->custom->jpeg['tmpdir'] = '/tmp'; // Example for Unix systems
  59. # $config->custom->jpeg['tmpdir'] = 'c:\\temp'; // Example for Windows systems
  60. /* Set this to (bool)true if you do NOT want a random salt used when
  61. calling crypt(). Instead, use the first two letters of the user's
  62. password. This is insecure but unfortunately needed for some older
  63. environments. */
  64. # $config->custom->password['no_random_crypt_salt'] = true;
  65. /* PHP script timeout control. If php runs longer than this many seconds then
  66. PHP will stop with an Maximum Execution time error. Increase this value from
  67. the default if queries to your LDAP server are slow. The default is either
  68. 30 seconds or the setting of max_exection_time if this is null. */
  69. // $config->custom->session['timelimit'] = 30;
  70. /* Our local timezone
  71. This is to make sure that when we ask the system for the current time, we
  72. get the right local time. If this is not set, all time() calculations will
  73. assume UTC if you have not set PHP date.timezone. */
  74. // $config->custom->appearance['timezone'] = null;
  75. # $config->custom->appearance['timezone'] = 'Europe/Istanbul';
  76. /*********************************************
  77. * Commands *
  78. *********************************************/
  79. /* Command availability ; if you don't authorize a command the command
  80. links will not be shown and the command action will not be permitted.
  81. For better security, set also ACL in your ldap directory. */
  82. /*
  83. $config->custom->commands['cmd'] = array(
  84. 'entry_internal_attributes_show' => true,
  85. 'entry_refresh' => true,
  86. 'oslinks' => true,
  87. 'switch_template' => true
  88. );
  89. $config->custom->commands['script'] = array(
  90. 'add_attr_form' => true,
  91. 'add_oclass_form' => true,
  92. 'add_value_form' => true,
  93. 'collapse' => true,
  94. 'compare' => true,
  95. 'compare_form' => true,
  96. 'copy' => true,
  97. 'copy_form' => true,
  98. 'create' => true,
  99. 'create_confirm' => true,
  100. 'delete' => true,
  101. 'delete_attr' => true,
  102. 'delete_form' => true,
  103. 'draw_tree_node' => true,
  104. 'expand' => true,
  105. 'export' => true,
  106. 'export_form' => true,
  107. 'import' => true,
  108. 'import_form' => true,
  109. 'login' => true,
  110. 'logout' => true,
  111. 'login_form' => true,
  112. 'mass_delete' => true,
  113. 'mass_edit' => true,
  114. 'mass_update' => true,
  115. 'modify_member_form' => true,
  116. 'monitor' => true,
  117. 'purge_cache' => true,
  118. 'query_engine' => true,
  119. 'rename' => true,
  120. 'rename_form' => true,
  121. 'rdelete' => true,
  122. 'refresh' => true,
  123. 'schema' => true,
  124. 'server_info' => true,
  125. 'show_cache' => true,
  126. 'template_engine' => true,
  127. 'update_confirm' => true,
  128. 'update' => true
  129. );
  130. */
  131. /*********************************************
  132. * Appearance *
  133. *********************************************/
  134. /* If you want to choose the appearance of the tree, specify a class name which
  135. inherits from the Tree class. */
  136. // $config->custom->appearance['tree'] = 'AJAXTree';
  137. # $config->custom->appearance['tree'] = 'HTMLTree';
  138. /* Just show your custom templates. */
  139. // $config->custom->appearance['custom_templates_only'] = false;
  140. /* Disable the default template. */
  141. // $config->custom->appearance['disable_default_template'] = false;
  142. /* Hide the warnings for invalid objectClasses/attributes in templates. */
  143. // $config->custom->appearance['hide_template_warning'] = false;
  144. /* Set to true if you would like to hide header and footer parts. */
  145. // $config->custom->appearance['minimalMode'] = false;
  146. /* Configure what objects are shown in left hand tree */
  147. // $config->custom->appearance['tree_filter'] = '(objectclass=*)';
  148. /* The height and width of the tree. If these values are not set, then
  149. no tree scroll bars are provided. */
  150. // $config->custom->appearance['tree_height'] = null;
  151. # $config->custom->appearance['tree_height'] = 600;
  152. // $config->custom->appearance['tree_width'] = null;
  153. # $config->custom->appearance['tree_width'] = 250;
  154. /* Confirm create and update operations, allowing you to review the changes
  155. and optionally skip attributes during the create/update operation. */
  156. // $config->custom->confirm['create'] = true;
  157. // $config->custom->confirm['update'] = true;
  158. /* Confirm copy operations, and treat them like create operations. This allows
  159. you to edit the attributes (thus changing any that might conflict with
  160. uniqueness) before creating the new entry. */
  161. // $config->custom->confirm['copy'] = true;
  162. /*********************************************
  163. * User-friendly attribute translation *
  164. *********************************************/
  165. /* Use this array to map attribute names to user friendly names. For example, if
  166. you don't want to see "facsimileTelephoneNumber" but rather "Fax". */
  167. // $config->custom->appearance['friendly_attrs'] = array();
  168. $config->custom->appearance['friendly_attrs'] = array(
  169. 'facsimileTelephoneNumber' => 'Fax',
  170. 'gid' => 'Group',
  171. 'mail' => 'Email',
  172. 'telephoneNumber' => 'Telephone',
  173. 'uid' => 'User Name',
  174. 'userPassword' => 'Password'
  175. );
  176. /*********************************************
  177. * Hidden attributes *
  178. *********************************************/
  179. /* You may want to hide certain attributes from being edited. If you want to
  180. hide attributes from the user, you should use your LDAP servers ACLs.
  181. NOTE: The user must be able to read the hide_attrs_exempt entry to be
  182. excluded. */
  183. // $config->custom->appearance['hide_attrs'] = array();
  184. # $config->custom->appearance['hide_attrs'] = array('objectClass');
  185. /* Members of this list will be exempt from the hidden attributes. */
  186. // $config->custom->appearance['hide_attrs_exempt'] = null;
  187. # $config->custom->appearance['hide_attrs_exempt'] = 'cn=PLA UnHide,ou=Groups,c=AU';
  188. /*********************************************
  189. * Read-only attributes *
  190. *********************************************/
  191. /* You may want to phpLDAPadmin to display certain attributes as read only,
  192. meaning that users will not be presented a form for modifying those
  193. attributes, and they will not be allowed to be modified on the "back-end"
  194. either. You may configure this list here:
  195. NOTE: The user must be able to read the readonly_attrs_exempt entry to be
  196. excluded. */
  197. // $config->custom->appearance['readonly_attrs'] = array();
  198. /* Members of this list will be exempt from the readonly attributes. */
  199. // $config->custom->appearance['readonly_attrs_exempt'] = null;
  200. # $config->custom->appearance['readonly_attrs_exempt'] = 'cn=PLA ReadWrite,ou=Groups,c=AU';
  201. /*********************************************
  202. * Group attributes *
  203. *********************************************/
  204. /* Add "modify group members" link to the attribute. */
  205. // $config->custom->modify_member['groupattr'] = array('member','uniqueMember','memberUid');
  206. /* Configure filter for member search. This only applies to "modify group members" feature */
  207. // $config->custom->modify_member['filter'] = '(objectclass=Person)';
  208. /* Attribute that is added to the group member attribute. */
  209. // $config->custom->modify_member['attr'] = 'dn';
  210. /* For Posix attributes */
  211. // $config->custom->modify_member['posixattr'] = 'uid';
  212. // $config->custom->modify_member['posixfilter'] = '(uid=*)';
  213. // $config->custom->modify_member['posixgroupattr'] = 'memberUid';
  214. /*********************************************
  215. * Support for attrs display order *
  216. *********************************************/
  217. /* Use this array if you want to have your attributes displayed in a specific
  218. order. You can use default attribute names or their fridenly names.
  219. For example, "sn" will be displayed right after "givenName". All the other
  220. attributes that are not specified in this array will be displayed after in
  221. alphabetical order. */
  222. // $config->custom->appearance['attr_display_order'] = array();
  223. # $config->custom->appearance['attr_display_order'] = array(
  224. # 'givenName',
  225. # 'sn',
  226. # 'cn',
  227. # 'displayName',
  228. # 'uid',
  229. # 'uidNumber',
  230. # 'gidNumber',
  231. # 'homeDirectory',
  232. # 'mail',
  233. # 'userPassword'
  234. # );
  235. /*********************************************
  236. * Define your LDAP servers in this section *
  237. *********************************************/
  238. $servers = new Datastore();
  239. /* $servers->NewServer('ldap_pla') must be called before each new LDAP server
  240. declaration. */
  241. $servers->newServer('ldap_pla');
  242. /* A convenient name that will appear in the tree viewer and throughout
  243. phpLDAPadmin to identify this LDAP server to users. */
  244. $servers->setValue('server','name','My LDAP Server');
  245. /* Examples:
  246. 'ldap.example.com',
  247. 'ldaps://ldap.example.com/',
  248. 'ldapi://%2fusr%local%2fvar%2frun%2fldapi'
  249. (Unix socket at /usr/local/var/run/ldap) */
  250. // $servers->setValue('server','host','127.0.0.1');
  251. /* The port your LDAP server listens on (no quotes). 389 is standard. */
  252. // $servers->setValue('server','port',389);
  253. /* Array of base DNs of your LDAP server. Leave this blank to have phpLDAPadmin
  254. auto-detect it for you. */
  255. // $servers->setValue('server','base',array(''));
  256. /* Five options for auth_type:
  257. 1. 'cookie': you will login via a web form, and a client-side cookie will
  258. store your login dn and password.
  259. 2. 'session': same as cookie but your login dn and password are stored on the
  260. web server in a persistent session variable.
  261. 3. 'http': same as session but your login dn and password are retrieved via
  262. HTTP authentication.
  263. 4. 'config': specify your login dn and password here in this config file. No
  264. login will be required to use phpLDAPadmin for this server.
  265. 5. 'sasl': login will be taken from the webserver's kerberos authentication.
  266. Currently only GSSAPI has been tested (using mod_auth_kerb).
  267. Choose wisely to protect your authentication information appropriately for
  268. your situation. If you choose 'cookie', your cookie contents will be
  269. encrypted using blowfish and the secret your specify above as
  270. session['blowfish']. */
  271. // $servers->setValue('login','auth_type','session');
  272. /* The DN of the user for phpLDAPadmin to bind with. For anonymous binds or
  273. 'cookie','session' or 'sasl' auth_types, LEAVE THE LOGIN_DN AND LOGIN_PASS
  274. BLANK. If you specify a login_attr in conjunction with a cookie or session
  275. auth_type, then you can also specify the bind_id/bind_pass here for searching
  276. the directory for users (ie, if your LDAP server does not allow anonymous
  277. binds. */
  278. // $servers->setValue('login','bind_id','');
  279. # $servers->setValue('login','bind_id','cn=Manager,dc=example,dc=com');
  280. /* Your LDAP password. If you specified an empty bind_id above, this MUST also
  281. be blank. */
  282. // $servers->setValue('login','bind_pass','');
  283. # $servers->setValue('login','bind_pass','secret');
  284. /* Use TLS (Transport Layer Security) to connect to the LDAP server. */
  285. // $servers->setValue('server','tls',false);
  286. /************************************
  287. * SASL Authentication *
  288. ************************************/
  289. /* Enable SASL authentication LDAP SASL authentication requires PHP 5.x
  290. configured with --with-ldap-sasl=DIR. If this option is disabled (ie, set to
  291. false), then all other sasl options are ignored. */
  292. // $servers->setValue('login','auth_type','sasl');
  293. /* SASL auth mechanism */
  294. // $servers->setValue('sasl','mech','GSSAPI');
  295. /* SASL authentication realm name */
  296. // $servers->setValue('sasl','realm','');
  297. # $servers->setValue('sasl','realm','EXAMPLE.COM');
  298. /* SASL authorization ID name
  299. If this option is undefined, authorization id will be computed from bind DN,
  300. using authz_id_regex and authz_id_replacement. */
  301. // $servers->setValue('sasl','authz_id', null);
  302. /* SASL authorization id regex and replacement
  303. When authz_id property is not set (default), phpLDAPAdmin will try to
  304. figure out authorization id by itself from bind distinguished name (DN).
  305. This procedure is done by calling preg_replace() php function in the
  306. following way:
  307. $authz_id = preg_replace($sasl_authz_id_regex,$sasl_authz_id_replacement,
  308. $bind_dn);
  309. For info about pcre regexes, see:
  310. - pcre(3), perlre(3)
  311. - http://www.php.net/preg_replace */
  312. // $servers->setValue('sasl','authz_id_regex',null);
  313. // $servers->setValue('sasl','authz_id_replacement',null);
  314. # $servers->setValue('sasl','authz_id_regex','/^uid=([^,]+)(.+)/i');
  315. # $servers->setValue('sasl','authz_id_replacement','$1');
  316. /* SASL auth security props.
  317. See http://beepcore-tcl.sourceforge.net/tclsasl.html#anchor5 for explanation. */
  318. // $servers->setValue('sasl','props',null);
  319. /* Default password hashing algorithm. One of md5, ssha, sha, md5crpyt, smd5,
  320. blowfish, crypt or leave blank for now default algorithm. */
  321. // $servers->setValue('appearance','password_hash','md5');
  322. /* If you specified 'cookie' or 'session' as the auth_type above, you can
  323. optionally specify here an attribute to use when logging in. If you enter
  324. 'uid' and login as 'dsmith', phpLDAPadmin will search for (uid=dsmith)
  325. and log in as that user.
  326. Leave blank or specify 'dn' to use full DN for logging in. Note also that if
  327. your LDAP server requires you to login to perform searches, you can enter the
  328. DN to use when searching in 'bind_id' and 'bind_pass' above. */
  329. // $servers->setValue('login','attr','dn');
  330. /* Base DNs to used for logins. If this value is not set, then the LDAP server
  331. Base DNs are used. */
  332. // $servers->setValue('login','base',array());
  333. /* If 'login,attr' is used above such that phpLDAPadmin will search for your DN
  334. at login, you may restrict the search to a specific objectClasses. EG, set this
  335. to array('posixAccount') or array('inetOrgPerson',..), depending upon your
  336. setup. */
  337. // $servers->setValue('login','class',array());
  338. /* If you specified something different from 'dn', for example 'uid', as the
  339. login_attr above, you can optionally specify here to fall back to
  340. authentication with dn.
  341. This is useful, when users should be able to log in with their uid, but
  342. the ldap administrator wants to log in with his root-dn, that does not
  343. necessarily have the uid attribute.
  344. When using this feature, login_class is ignored. */
  345. // $servers->setValue('login','fallback_dn',false);
  346. /* Specify true If you want phpLDAPadmin to not display or permit any
  347. modification to the LDAP server. */
  348. // $servers->setValue('server','read_only',false);
  349. /* Specify false if you do not want phpLDAPadmin to draw the 'Create new' links
  350. in the tree viewer. */
  351. // $servers->setValue('appearance','show_create',true);
  352. /* Set to true if you would like to initially open the first level of each tree. */
  353. // $servers->setValue('appearance','open_tree',false);
  354. /* This feature allows phpLDAPadmin to automatically determine the next
  355. available uidNumber for a new entry. */
  356. // $servers->setValue('auto_number','enable',true);
  357. /* The mechanism to use when finding the next available uidNumber. Two possible
  358. values: 'uidpool' or 'search'.
  359. The 'uidpool' mechanism uses an existing uidPool entry in your LDAP server to
  360. blindly lookup the next available uidNumber. The 'search' mechanism searches
  361. for entries with a uidNumber value and finds the first available uidNumber
  362. (slower). */
  363. // $servers->setValue('auto_number','mechanism','search');
  364. /* The DN of the search base when the 'search' mechanism is used above. */
  365. # $servers->setValue('auto_number','search_base','ou=People,dc=example,dc=com');
  366. /* The minimum number to use when searching for the next available number
  367. (only when 'search' is used for auto_number. */
  368. // $servers->setValue('auto_number','min',array('uidNumber'=>1000,'gidNumber'=>500));
  369. /* If you set this, then phpldapadmin will bind to LDAP with this user ID when
  370. searching for the uidnumber. The idea is, this user id would have full
  371. (readonly) access to uidnumber in your ldap directory (the logged in user
  372. may not), so that you can be guaranteed to get a unique uidnumber for your
  373. directory. */
  374. // $servers->setValue('auto_number','dn',null);
  375. /* The password for the dn above. */
  376. // $servers->setValue('auto_number','pass',null);
  377. /* Enable anonymous bind login. */
  378. // $servers->setValue('login','anon_bind',true);
  379. /* Use customized page with prefix when available. */
  380. # $servers->setValue('custom','pages_prefix','custom_');
  381. /* If you set this, then only these DNs are allowed to log in. This array can
  382. contain individual users, groups or ldap search filter(s). Keep in mind that
  383. the user has not authenticated yet, so this will be an anonymous search to
  384. the LDAP server, so make your ACLs allow these searches to return results! */
  385. # $servers->setValue('login','allowed_dns',array(
  386. # 'uid=stran,ou=People,dc=example,dc=com',
  387. # '(&(gidNumber=811)(objectClass=groupOfNames))',
  388. # '(|(uidNumber=200)(uidNumber=201))',
  389. # 'cn=callcenter,ou=Group,dc=example,dc=com'));
  390. /* Set this if you dont want this LDAP server to show in the tree */
  391. // $servers->setValue('server','visible',true);
  392. /* Set this if you want to hide the base DNs that dont exist instead of
  393. displaying the message "The base entry doesnt exist, create it?"
  394. // $servers->setValue('server','hide_noaccess_base',false);
  395. # $servers->setValue('server','hide_noaccess_base',true);
  396. /* This is the time out value in minutes for the server. After as many minutes
  397. of inactivity you will be automatically logged out. If not set, the default
  398. value will be ( session_cache_expire()-1 ) */
  399. # $servers->setValue('login','timeout',30);
  400. /* Set this if you want phpldapadmin to perform rename operation on entry which
  401. has children. Certain servers are known to allow it, certain are not. */
  402. // $servers->setValue('server','branch_rename',false);
  403. /* If you set this, then phpldapadmin will show these attributes as
  404. internal attributes, even if they are not defined in your schema. */
  405. // $servers->setValue('server','custom_sys_attrs',array(''));
  406. # $servers->setValue('server','custom_sys_attrs',array('passwordExpirationTime','passwordAllowChangeTime'));
  407. /* If you set this, then phpldapadmin will show these attributes on
  408. objects, even if they are not defined in your schema. */
  409. // $servers->setValue('server','custom_attrs',array(''));
  410. # $servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
  411. /* These attributes will be forced to MAY attributes and become option in the
  412. templates. If they are not defined in the templates, then they wont appear
  413. as per normal template processing. You may want to do this because your LDAP
  414. server may automatically calculate a default value.
  415. In Fedora Directory Server using the DNA Plugin one could ignore uidNumber,
  416. gidNumber and sambaSID. */
  417. // $servers->setValue('server','force_may',array(''));
  418. # $servers->setValue('server','force_may',array('uidNumber','gidNumber','sambaSID'));
  419. /*********************************************
  420. * Unique attributes *
  421. *********************************************/
  422. /* You may want phpLDAPadmin to enforce some attributes to have unique values
  423. (ie: not belong to other entries in your tree. This (together with
  424. 'unique','dn' and 'unique','pass' option will not let updates to
  425. occur with other attributes have the same value. */
  426. # $servers->setValue('unique','attrs',array('mail','uid','uidNumber'));
  427. /* If you set this, then phpldapadmin will bind to LDAP with this user ID when
  428. searching for attribute uniqueness. The idea is, this user id would have full
  429. (readonly) access to your ldap directory (the logged in user may not), so
  430. that you can be guaranteed to get a unique uidnumber for your directory. */
  431. // $servers->setValue('unique','dn',null);
  432. /* The password for the dn above. */
  433. // $servers->setValue('unique','pass',null);
  434. /**************************************************************************
  435. * If you want to configure additional LDAP servers, do so below. *
  436. * Remove the commented lines and use this section as a template for all *
  437. * your other LDAP servers. *
  438. **************************************************************************/
  439. /*
  440. $servers->newServer('ldap_pla');
  441. $servers->setValue('server','name','LDAP Server');
  442. $servers->setValue('server','host','127.0.0.1');
  443. $servers->setValue('server','port',389);
  444. $servers->setValue('server','base',array(''));
  445. $servers->setValue('login','auth_type','cookie');
  446. $servers->setValue('login','bind_id','');
  447. $servers->setValue('login','bind_pass','');
  448. $servers->setValue('server','tls',false);
  449. # SASL auth
  450. $servers->setValue('login','auth_type','sasl');
  451. $servers->setValue('sasl','mech','GSSAPI');
  452. $servers->setValue('sasl','realm','EXAMPLE.COM');
  453. $servers->setValue('sasl','authz_id',null);
  454. $servers->setValue('sasl','authz_id_regex','/^uid=([^,]+)(.+)/i');
  455. $servers->setValue('sasl','authz_id_replacement','$1');
  456. $servers->setValue('sasl','props',null);
  457. $servers->setValue('appearance','password_hash','md5');
  458. $servers->setValue('login','attr','dn');
  459. $servers->setValue('login','fallback_dn',false);
  460. $servers->setValue('login','class',null);
  461. $servers->setValue('server','read_only',false);
  462. $servers->setValue('appearance','show_create',true);
  463. $servers->setValue('auto_number','enable',true);
  464. $servers->setValue('auto_number','mechanism','search');
  465. $servers->setValue('auto_number','search_base',null);
  466. $servers->setValue('auto_number','min',array('uidNumber'=>1000,'gidNumber'=>500));
  467. $servers->setValue('auto_number','dn',null);
  468. $servers->setValue('auto_number','pass',null);
  469. $servers->setValue('login','anon_bind',true);
  470. $servers->setValue('custom','pages_prefix','custom_');
  471. $servers->setValue('unique','attrs',array('mail','uid','uidNumber'));
  472. $servers->setValue('unique','dn',null);
  473. $servers->setValue('unique','pass',null);
  474. $servers->setValue('server','visible',true);
  475. $servers->setValue('login','timeout',30);
  476. $servers->setValue('server','branch_rename',false);
  477. $servers->setValue('server','custom_sys_attrs',array('passwordExpirationTime','passwordAllowChangeTime'));
  478. $servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
  479. $servers->setValue('server','force_may',array('uidNumber','gidNumber','sambaSID'));
  480. */
  481. ?>