die folgende Routine gibt mir erfolgreich zurück, aber der Hostname ist leer. Der Rest der Anmeldung arbeitet korrekt (Username, password).
Code: Alles auswählen
if( pam_get_item(pamhandle,PAM_RHOST,(const void **) &hostname) == PAM_SUCCESS)
setDomain( (const char*) hostname);
else
Domain.clear();
Was heisst den hier " In such situations, it is unclear where the authentication request is originating from." ?PAM_RHOST
The requesting hostname (the hostname of the machine from which the PAM_RUSER entity is requesting service). That is PAM_RUSER@PAM_RHOST does identify the requesting user. In some applications, PAM_RHOST may be NULL. In such situations, it is unclear where the authentication request is originating from.
Ich würde sagen "Not supported" oder ?
Muss man den Anmelderechner dann anders ermittelt ?
Gruss R.