summaryrefslogtreecommitdiff
path: root/imp
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-04-02 06:59:37 +0000
committerJonas Smedegaard <dr@jones.dk>2002-04-02 06:59:37 +0000
commitd63d1e833d3bff035584cc78e001fdd7311b274f (patch)
tree9069dc32fb49b030436d3e016a2ce1252fd0aa9a /imp
parent2702c312805ae4cae6697285f8019869bc53581f (diff)
imp: New ldap file.
Diffstat (limited to 'imp')
-rw-r--r--imp/ldap.php396
1 files changed, 96 insertions, 0 deletions
diff --git a/imp/ldap.php3 b/imp/ldap.php3
new file mode 100644
index 0000000..84bf9c6
--- /dev/null
+++ b/imp/ldap.php3
@@ -0,0 +1,96 @@
+<?php
+
+/*
+
+ File: config/ldap.php3
+ $Author: jonas $
+ $Revision: 1.1 $
+ $Date: 2002-04-02 06:59:37 $
+
+ IMP: Copywrite 1998 Charles J. Hagenbuch chuck@horde.org
+
+ This code is under the GNU Public License
+ See the file COPYING in this directory
+
+ */
+$LDAPServers = array();
+
+/*
+$LDAPServers['infospace'] = new LDAPServer('infospace',
+ 'Infospace',
+ 'ldap.infospace.com',
+ '',
+ 'sn',
+ 'cn,mail,sn',
+ 'is,is_strict,contains,begins,ends');
+
+$LDAPServers['bigfoot'] = new LDAPServer('bigfoot',
+ 'Bigfoot',
+ 'ldap.bigfoot.com',
+ '',
+ 'surname',
+ 'cn,mail,sn',
+ 'is,sounds,is_strict,contains,begins,ends');
+
+
+$LDAPServers['infospacebiz'] = new LDAPServer('infospacebiz',
+ 'InfoSpace Business',
+ 'ldapbiz.infospace.com',
+ '',
+ 'sn',
+ 'cn,sn',
+ 'is_strict,begins');
+
+$LDAPServers['yahoo'] = new LDAPServer('yahoo',
+ 'Yahoo',
+ 'ldap.yahoo.com',
+ '',
+ 'sn',
+ 'cn,mail,sn,givenname',
+ 'is,is_strict,contains,begins,ends');
+
+$LDAPServers['whowhere'] = new LDAPServer('whowhere',
+ 'WhoWhere',
+ 'ldap.whowhere.com',
+ '',
+ 'sn',
+ 'cn,mail,sn,givenname',
+ 'is,is_strict,contains,begins,ends');
+*/
+
+/*
+ The following is another example how to add your local LDAP server.
+ Have a look at the last three lines:
+
+ The last line specifies the attribute holding the email address
+ (defaults to mail, if your email addresses are stored in a different
+ attribute then set this one). Most people won't need this but if you
+ use a custom attribute this will let you still search standard
+ directories in the same IMP installation).
+
+ The last but one specifies the country (ie. c=[country].
+
+ The line before that specifies your organisation
+ (ie. o=[organisation].
+
+ Alternatively you can leave the country/org lines blank and just
+ specify a normal base DN on the fourth line.
+
+ See horde lib for a complete list of options */
+
+$LDAPServers['jones'] = new LDAPServer('jones',
+ 'jones.dk',
+ 'ldap.jones.dk',
+ 'dc=jones,dc=dk',
+ 'sn',
+ 'cn,mail,sn,givenname,uid,ou',
+ 'is,sounds,is_strict,contains,begins,ends');
+$LDAPServers['homebase'] = new LDAPServer('homebase',
+ 'homebase.dk',
+ 'ldap.homebase.dk',
+ 'dc=homebase,dc=dk',
+ 'sn',
+ 'cn,mail,sn,givenname,uid,ou',
+ 'is,sounds,is_strict,contains,begins,ends');
+
+?>