VirtualBox

Changeset 45979 in vbox


Ignore:
Timestamp:
May 10, 2013 10:35:32 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85632
Message:

lightdm_greeter: Also take domain name into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp

    r45859 r45979  
    372372        /** @todo Domain handling needed?  */
    373373        char *pszUsername; /* User name only is kept local. */
    374         rc = VbglR3CredentialsRetrieve(&pszUsername, &pCtx->pszPassword, NULL /* pszDomain */);
     374        char *pszDomain = NULL;
     375        rc = VbglR3CredentialsRetrieve(&pszUsername, &pCtx->pszPassword, &pszDomain);
    375376        if (RT_FAILURE(rc))
    376377        {
     
    379380        else
    380381        {
    381             vboxGreeterLog("vboxGreeterCheckCreds: credentials retrieved: user=%s, password=%s\n",
     382            vboxGreeterLog("vboxGreeterCheckCreds: credentials retrieved: user=%s, password=%s, domain=%s\n",
    382383                           pszUsername,
    383384#ifdef DEBUG
    384                            pCtx->pszPassword);
    385 #else
    386                            "XXX");
    387 #endif
     385                           pCtx->pszPassword,
     386#else
     387                           "XXX",
     388#endif
     389                           pszDomain);
    388390            /* Trigger LightDM authentication with the user name just retrieved. */
    389391            lightdm_greeter_authenticate(pCtx->pGreeter, pszUsername); /* Must be the real user name from host! */
    390392
    391             /* Securely wipe the user name again. */
    392             VbglR3CredentialsDestroy(pszUsername, NULL /* pszPassword */, NULL /* pszDomain */,
     393            /* Securely wipe the user name + domain again. */
     394            VbglR3CredentialsDestroy(pszUsername, NULL /* pszPassword */, pszDomain,
    393395                                     3 /* Three wipe passes */);
    394396        }
     
    14841486    VbglR3Term();
    14851487
    1486     RTEXITCODE rcExit = RT_SUCCESS(rc) 
     1488    RTEXITCODE rcExit = RT_SUCCESS(rc)
    14871489                      ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    14881490
    1489     vboxGreeterLog("terminated with exit code %ld (rc=%Rrc)\n", 
     1491    vboxGreeterLog("terminated with exit code %ld (rc=%Rrc)\n",
    14901492                   rcExit, rc);
    14911493
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette