[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge-plugin-ldapextauth/etc config.php, 1.1, 1.2 mapp
From: |
cbayle |
Subject: |
[Gforge-commits] gforge-plugin-ldapextauth/etc config.php, 1.1, 1.2 mapping.php, 1.1, 1.2 |
Date: |
Fri, 29 Oct 2004 17:57:19 -0500 |
Update of /cvsroot/gforge/gforge-plugin-ldapextauth/etc
In directory db.perdue.net:/tmp/cvs-serv18124/etc
Modified Files:
config.php mapping.php
Log Message:
Added AD support
Index: config.php
===================================================================
RCS file: /cvsroot/gforge/gforge-plugin-ldapextauth/etc/config.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- config.php 23 Sep 2004 21:11:22 -0000 1.1
+++ config.php 29 Oct 2004 22:57:17 -0000 1.2
@@ -2,6 +2,8 @@
$base_dn = "dc=users,dc=example,dc=com" ;
$ldap_server = "ldap.example.com" ;
+//$ldap_kind="AD"; // Active Directory server
+//$ldap_port=389;
// Local Variables:
// mode: php
Index: mapping.php
===================================================================
RCS file: /cvsroot/gforge/gforge-plugin-ldapextauth/etc/mapping.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mapping.php 23 Sep 2004 21:11:22 -0000 1.1
+++ mapping.php 29 Oct 2004 22:57:17 -0000 1.2
@@ -1,6 +1,7 @@
<?php
function plugin_ldapextauth_mapping ($entry) {
+ global $Language;
$result = array () ;
$realname = $entry['gecos'][0] ;
@@ -9,21 +10,29 @@
$result['firstname'] = $rnarray[0] ;
$result['lastname'] = $rnarray[1] ;
$result['email'] = $entry['uid'][0] . '@' .
$GLOBALS['sys_default_domain'] ;
+ //$result['email'] = $entry['mail'][0] ; // AD
// You may also want to customise $result['language_id']
+ //$result['language_id']=$Language->getLanguageId();
// You may also want to customise $result['timezone']
+ //$result['timezone']=$GLOBALS['sys_default_timezone'];
// You may also want to customise $result['jabber_address']
// You may also want to customise $result['address']
// You may also want to customise $result['address2']
// You may also want to customise $result['phone']
+ //$result['phone'] = $entry['telephonenumber'][0]; //AD
// You may also want to customise $result['fax']
// You may also want to customise $result['title']
// You may also want to customise $result['ccode']
+ //$result['ccode']=$GLOBALS['sys_default_country_code'];
+ // You may also want to customise $result['themeid']
+ $result['themeid']=$GLOBALS['sys_default_theme_id'];
return $result ;
}
function plugin_ldapextauth_getdn ($plugin, $username) {
return "uid=$username," . $plugin->base_dn ;
+ //return 'DOMAIN\\' . "$username" ; // AD
}
// Local Variables:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge-plugin-ldapextauth/etc config.php, 1.1, 1.2 mapping.php, 1.1, 1.2,
cbayle <=