mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-15 09:06:21 +01:00
2017-07-28 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'RDUser::authenticated()' method to eliminate use of rdauth(8).
This commit is contained in:
@@ -15907,3 +15907,6 @@
|
|||||||
* Fixed a bug in 'lib/rdevent_line.cpp' that caused embedded traffic
|
* Fixed a bug in 'lib/rdevent_line.cpp' that caused embedded traffic
|
||||||
import events to be assigned incorrect link parameters when scheduled
|
import events to be assigned incorrect link parameters when scheduled
|
||||||
immediately after a voice track.
|
immediately after a voice track.
|
||||||
|
2017-07-28 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Refactored the 'RDUser::authenticated()' method to eliminate use
|
||||||
|
of rdauth(8).
|
||||||
|
|||||||
@@ -69,11 +69,11 @@ bool RDUser::authenticated(bool webuser) const
|
|||||||
}
|
}
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
else {
|
else {
|
||||||
QString cmd=
|
bool ret=false;
|
||||||
"rdauth "+pamService()+" "+RDEscapeShellString(user_name)+" "+
|
RDPam *pam=new RDPam(pamService());
|
||||||
RDEscapeShellString(user_password);
|
ret=pam->authenticate(user_name,user_password);
|
||||||
int exitcode=system(cmd);
|
delete pam;
|
||||||
return WEXITSTATUS(exitcode)==0;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user