Autodiscover questions?
-
Hi,
I was wondering if someone could shed some light on the issue im having, currently have zpush working with autodiscover. the issue im having is that the autodiscover works but always gets the whole email address, I only need to get the username as my server authenticates by username and not by email.
This is my conf of autodiscover as i have it to false the use full email address.Thank you
* Default settings */ // Replace zpush.example.com with your z-push's host name and uncomment the line below. define('ZPUSH_HOST', 'mail.mydomain.com'); // Defines the default time zone, change e.g. to "Europe/London" if necessary define('TIMEZONE', 'America/Bogota'); // Defines the base path on the server define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']). '/'); /* * Whether to use the complete email address as a login name * (e.g. user@company.com) or the username only (user). * Possible values: * false - use the username only (default). * true - use the complete email address. */ define('USE_FULLEMAIL_FOR_LOGIN', false); /* * AutoDiscover requires the username to match either the email address * or the local part of the email address. * This is not always possible as the username might have a different * schema than email address. Configure this parameter to match your * username settings. * @see https://wiki.z-hub.io/display/ZP/Configuring+Z-Push+Autodiscover#ConfiguringZ-PushAutodiscover-Configuration * @see https://jira.z-hub.io/browse/ZP-1209 * * Possible values: * AUTODISCOVER_LOGIN_EMAIL - uses the email address as provided when setting up the account * AUTODISCOVER_LOGIN_NO_DOT - removes the '.' from email address: * email: first.last@domain.com -> resulting username: firstlast * AUTODISCOVER_LOGIN_F_NO_DOT_LAST - cuts the first part before '.' after the first letter and * removes the '.' from email address: * email: first.last@domain.com -> resulting username: flast * AUTODISCOVER_LOGIN_F_DOT_LAST - cuts the part before '.' after the first letter and * leaves the part after '.' as is: * email: first.last@domain.com -> resulting username: f.last */ define('AUTODISCOVER_LOGIN_TYPE', AUTODISCOVER_LOGIN_EMAIL); /********************************************************************************** * Logging settings * Possible LOGLEVEL and LOGUSERLEVEL values are: * LOGLEVEL_OFF - no logging * LOGLEVEL_FATAL - log only critical errors * LOGLEVEL_ERROR - logs events which might require corrective actions * LOGLEVEL_WARN - might lead to an error or require corrective actions in the future * LOGLEVEL_INFO - usually completed actions * LOGLEVEL_DEBUG - debugging information, typically only meaningful to developers * LOGLEVEL_WBXML - also prints the WBXML sent to/from the device * LOGLEVEL_DEVICEID - also prints the device id for every log entry * LOGLEVEL_WBXMLSTACK - also prints the contents of WBXML stack * * The verbosity increases from top to bottom. More verbose levels include less verbose * ones, e.g. setting to LOGLEVEL_DEBUG will also output LOGLEVEL_FATAL, LOGLEVEL_ERROR, * LOGLEVEL_WARN and LOGLEVEL_INFO level entries. */ define('LOGBACKEND', 'filelog'); define('LOGFILEDIR', '/var/log/z-push/'); define('LOGFILE', LOGFILEDIR . 'autodiscover.log'); define('LOGERRORFILE', LOGFILEDIR . 'autodiscover-error.log'); define('LOGLEVEL', LOGLEVEL_INFO); define('LOGUSERLEVEL', LOGLEVEL); $specialLogUsers = array(); // Syslog settings // false will log to local syslog, otherwise put the remote syslog IP here define('LOG_SYSLOG_HOST', false); // Syslog port define('LOG_SYSLOG_PORT', 514); // Program showed in the syslog. Useful if you have more than one instance login to the same syslog define('LOG_SYSLOG_PROGRAM', 'z-push-autodiscover'); // Syslog facility - use LOG_USER when running on Windows define('LOG_SYSLOG_FACILITY', LOG_LOCAL0); /********************************************************************************** * Backend settings */ // the backend data provider define('BACKEND_PROVIDER', 'BackendCombined');
-
Hi killmasta93,
@killmasta93 said in Autodiscover questions?:
Hi,
I was wondering if someone could shed some light on the issue im having, currently have zpush working with autodiscover. the issue im having is that the autodiscover works but always gets the whole email address, I only need to get the username as my server authenticates by username and not by email.
This is my conf of autodiscover as i have it to false the use full email address.Could you explain the “always get the whole email address” part more? Do you mean that the autodiscover returns the full email address and Z-Push then tries to login using it? Does the local email part match the username?
What is the setting of USE_FULLEMAIL_FOR_LOGIN in z-push.conf.php?
Manfred
-
Thank you for the reply, your completely right i thought it was only the autodicover.conf i had to put also on the zpush conf that did the trick thank you sooo much