mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-10-31 14:13:52 +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 | ||||
| 	import events to be assigned incorrect link parameters when scheduled | ||||
| 	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 | ||||
|   else { | ||||
|     QString cmd= | ||||
|       "rdauth "+pamService()+" "+RDEscapeShellString(user_name)+" "+ | ||||
|       RDEscapeShellString(user_password); | ||||
|     int exitcode=system(cmd); | ||||
|     return WEXITSTATUS(exitcode)==0; | ||||
|     bool ret=false; | ||||
|     RDPam *pam=new RDPam(pamService()); | ||||
|     ret=pam->authenticate(user_name,user_password); | ||||
|     delete pam; | ||||
|     return ret; | ||||
|   } | ||||
| #endif  // WIN32 | ||||
|   return false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user