|
|
@ -978,10 +978,18 @@ int LDAPManager::setPasswordForUser(LDAPUserInfo user, TQString *errstr) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (prompt.endsWith(" Password:")) {
|
|
|
|
if (prompt.endsWith(" Password:")) {
|
|
|
|
if (admincreds.password == "") {
|
|
|
|
if (admincreds.password == "") {
|
|
|
|
TQCString password;
|
|
|
|
if (tqApp->type() != TQApplication::Tty) {
|
|
|
|
int result = KPasswordDialog::getPassword(password, prompt);
|
|
|
|
TQCString password;
|
|
|
|
if (result == KPasswordDialog::Accepted) {
|
|
|
|
int result = KPasswordDialog::getPassword(password, prompt);
|
|
|
|
admincreds.password = password;
|
|
|
|
if (result == KPasswordDialog::Accepted) {
|
|
|
|
|
|
|
|
admincreds.password = password;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
TQFile file;
|
|
|
|
|
|
|
|
file.open(IO_ReadOnly, stdin);
|
|
|
|
|
|
|
|
TQTextStream qtin(&file);
|
|
|
|
|
|
|
|
admincreds.password = qtin.readLine();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (admincreds.password != "") {
|
|
|
|
if (admincreds.password != "") {
|
|
|
@ -1633,10 +1641,18 @@ int LDAPManager::addServiceInfo(LDAPServiceInfo service, TQString *errstr) {
|
|
|
|
while (prompt != "kadmin>") {
|
|
|
|
while (prompt != "kadmin>") {
|
|
|
|
if (prompt.endsWith(" Password:")) {
|
|
|
|
if (prompt.endsWith(" Password:")) {
|
|
|
|
if (admincreds.password == "") {
|
|
|
|
if (admincreds.password == "") {
|
|
|
|
TQCString password;
|
|
|
|
if (tqApp->type() != TQApplication::Tty) {
|
|
|
|
int result = KPasswordDialog::getPassword(password, prompt);
|
|
|
|
TQCString password;
|
|
|
|
if (result == KPasswordDialog::Accepted) {
|
|
|
|
int result = KPasswordDialog::getPassword(password, prompt);
|
|
|
|
admincreds.password = password;
|
|
|
|
if (result == KPasswordDialog::Accepted) {
|
|
|
|
|
|
|
|
admincreds.password = password;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
TQFile file;
|
|
|
|
|
|
|
|
file.open(IO_ReadOnly, stdin);
|
|
|
|
|
|
|
|
TQTextStream qtin(&file);
|
|
|
|
|
|
|
|
admincreds.password = qtin.readLine();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (admincreds.password != "") {
|
|
|
|
if (admincreds.password != "") {
|
|
|
|