#include "../libcli/auth/spnego.h"
#include "auth/ntlmssp/ntlmssp.h"
#include "auth/gensec/gensec.h"
+#include "auth/gensec/gensec_internal.h"
#include "auth/credentials/credentials.h"
#include "librpc/crypto/gse.h"
#include "smb_krb5.h"
/* Ask for a password */
x_fprintf(x_stdout, "PW\n");
- credentials->priv_data = NULL;
manage_squid_request(NUM_HELPER_MODES /* bogus */, NULL, NULL, manage_gensec_get_pw_request, (void **)&password);
talloc_steal(credentials, password);
if (winbindd_request_response(WINBINDD_DOMAIN_NAME, NULL, &response) !=
NSS_STATUS_SUCCESS) {
- DEBUG(0, ("could not obtain winbind domain name!\n"));
+ DEBUG(1, ("could not obtain winbind domain name!\n"));
return lp_workgroup();
}
if (winbindd_request_response(WINBINDD_NETBIOS_NAME, NULL, &response) !=
NSS_STATUS_SUCCESS) {
- DEBUG(0, ("could not obtain winbind netbios name!\n"));
+ DEBUG(1, ("could not obtain winbind netbios name!\n"));
return lp_netbios_name();
}
if (!parse_ntlm_auth_domain_user(require_membership_of,
request.data.name.dom_name,
request.data.name.name)) {
- DEBUG(0, ("Could not parse %s into seperate domain/name parts!\n",
+ DEBUG(0, ("Could not parse %s into separate domain/name parts!\n",
require_membership_of));
return False;
}
}
if (!opt_password) {
- opt_password = getpass("password: ");
+ char pwd[256] = {0};
+ int rc;
+
+ rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false);
+ if (rc == 0) {
+ opt_password = SMB_STRDUP(pwd);
+ }
}
if (diagnostics) {