pu = p_new(pw->pool, struct passwd_user, 1);
pu->user_realm = p_strdup(pw->pool, username);
+ pu->realm = strchr(pu->user_realm, '@');
+ if (pu->realm != NULL)
+ pu->realm++;
+
p = pass == NULL ? NULL : strchr(pass, '[');
if (p == NULL) {
pu->password = p_strdup(pw->pool, pass);
stop = reply->reply_idx < reply->data_size ?
reply->reply_idx-1 : reply->data_size;
- return t_strndup(data, stop);
+ return t_strndup(data + idx, stop);
}
int auth_callback(struct auth_request *request, struct auth_login_reply *reply,