--- authentication_api_150.php 2005-07-03 07:50:07.815300800 +0100 +++ authentication_api_mine.php 2005-07-03 07:55:16.208748800 +0100 @@ -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;