Skip to content

Commit

Permalink
* core/ldap_api.php: add a comment, remove a tab
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1760 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Jan 23, 2003
1 parent 1744f3b commit b9a2237
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/ldap_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: ldap_api.php,v 1.9 2003-01-23 06:05:21 robertjf Exp $
# $Id: ldap_api.php,v 1.10 2003-01-23 09:16:46 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -47,11 +47,13 @@ function ldap_connect_bind( $p_binddn = '', $p_password = '' ) {
# --------------------
# Return an email address from LDAP, given a userid
function ldap_email( $p_user_id ) {
$t_username = user_get_field( $p_user_id, 'username' );
$t_username = user_get_field( $p_user_id, 'username' );
return ldap_email_from_username($t_username)

}

# --------------------
# Return an email address from LDAP, given a username
function ldap_email_from_username( $p_username ) {
$t_ldap_organization = config_get( 'ldap_organization' );
$t_ldap_root_dn = config_get( 'ldap_root_dn' );
Expand Down

0 comments on commit b9a2237

Please sign in to comment.