--- authentication_api.php 10 Aug 2005 16:21:28 -0000 1.53 +++ authentication_api.php 15 Dec 2006 22:55:52 -0000 @@ -72,8 +72,8 @@ $t_login_method = config_get( 'login_method' ); if ( false === $t_user_id ) { - if ( BASIC_AUTH == $t_login_method ) { - # attempt to create the user if using BASIC_AUTH + if ( BASIC_AUTH == $t_login_method || LDAP == $t_login_method ) { + # attempt to create the user if using BASIC_AUTH or LDAP $t_cookie_string = user_create( $p_username, $p_password ); if ( false === $t_cookie_string ) { @@ -90,6 +90,10 @@ # @@@ trigger an error here? return false; + } elseif ( LDAP == $t_login_method ) { + # get the users' email address if using LDAP + + user_set_email( $t_user_id, ldap_email( $t_user_id ) ); } } else { return false;