function ldap_unix2expirationtime($time) {
        $result = false;
        switch ($this->config->user_type) {
            case 'edir':
                $result=date('YmdHis', $time).'Z';
                break;
            case 'rfc2307':
            case 'rfc2307bis':
                $result = $time ; // Already in correct format
                break;
            default:
                print_error('auth_ldap_usertypeundefined2', 'auth_ldap');
        }
        return $result;

    }
function ldap_unix2expirationtime($time) {
        $result = false;
        switch ($this->config->user_type) {
            case 'edir':
                $result=date('YmdHis', $time).'Z';
                break;
            case 'rfc2307':
            case 'rfc2307bis':
                $result = $time ; // Already in correct format
                break;
            default:
                print_error('auth_ldap_usertypeundefined2', 'auth_ldap');
        }
        return $result;

    }
function ldap_unix2expirationtime ( $ time ) { $ result = false ; switch ( $ this -> config -> user_type ) { case 'edir' : $ result = date ( 'YmdHis' , $ time ) . 'Z' ; break ; case 'rfc2307' : case 'rfc2307bis' : $ result = $ time ; // Already in correct format break ; default : print_error ( 'auth_ldap_usertypeundefined2' , 'auth_ldap' ) ; } return $ result ; }
Takes unix timestamp and returns it formated for storing in LDAP

@param integer unix time stamp
Takes unix timestamp and returns it formated for storing in LDAP