summaryrefslogtreecommitdiff
path: root/imp/ldap.php3
blob: 84bf9c6a191a50261beba32da72b9b0d6f73aad9 (plain)
  1. <?php
  2. /*
  3.  
  4. File: config/ldap.php3
  5. $Author: jonas $
  6. $Revision: 1.1 $
  7. $Date: 2002-04-02 06:59:37 $
  8. IMP: Copywrite 1998 Charles J. Hagenbuch chuck@horde.org
  9. This code is under the GNU Public License
  10. See the file COPYING in this directory
  11. */
  12. $LDAPServers = array();
  13. /*
  14. $LDAPServers['infospace'] = new LDAPServer('infospace',
  15. 'Infospace',
  16. 'ldap.infospace.com',
  17. '',
  18. 'sn',
  19. 'cn,mail,sn',
  20. 'is,is_strict,contains,begins,ends');
  21. $LDAPServers['bigfoot'] = new LDAPServer('bigfoot',
  22. 'Bigfoot',
  23. 'ldap.bigfoot.com',
  24. '',
  25. 'surname',
  26. 'cn,mail,sn',
  27. 'is,sounds,is_strict,contains,begins,ends');
  28. $LDAPServers['infospacebiz'] = new LDAPServer('infospacebiz',
  29. 'InfoSpace Business',
  30. 'ldapbiz.infospace.com',
  31. '',
  32. 'sn',
  33. 'cn,sn',
  34. 'is_strict,begins');
  35. $LDAPServers['yahoo'] = new LDAPServer('yahoo',
  36. 'Yahoo',
  37. 'ldap.yahoo.com',
  38. '',
  39. 'sn',
  40. 'cn,mail,sn,givenname',
  41. 'is,is_strict,contains,begins,ends');
  42. $LDAPServers['whowhere'] = new LDAPServer('whowhere',
  43. 'WhoWhere',
  44. 'ldap.whowhere.com',
  45. '',
  46. 'sn',
  47. 'cn,mail,sn,givenname',
  48. 'is,is_strict,contains,begins,ends');
  49. */
  50. /*
  51. The following is another example how to add your local LDAP server.
  52. Have a look at the last three lines:
  53. The last line specifies the attribute holding the email address
  54. (defaults to mail, if your email addresses are stored in a different
  55. attribute then set this one). Most people won't need this but if you
  56. use a custom attribute this will let you still search standard
  57. directories in the same IMP installation).
  58. The last but one specifies the country (ie. c=[country].
  59. The line before that specifies your organisation
  60. (ie. o=[organisation].
  61. Alternatively you can leave the country/org lines blank and just
  62. specify a normal base DN on the fourth line.
  63. See horde lib for a complete list of options */
  64. $LDAPServers['jones'] = new LDAPServer('jones',
  65. 'jones.dk',
  66. 'ldap.jones.dk',
  67. 'dc=jones,dc=dk',
  68. 'sn',
  69. 'cn,mail,sn,givenname,uid,ou',
  70. 'is,sounds,is_strict,contains,begins,ends');
  71. $LDAPServers['homebase'] = new LDAPServer('homebase',
  72. 'homebase.dk',
  73. 'ldap.homebase.dk',
  74. 'dc=homebase,dc=dk',
  75. 'sn',
  76. 'cn,mail,sn,givenname,uid,ou',
  77. 'is,sounds,is_strict,contains,begins,ends');
  78. ?>