Changeset 59650 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 12, 2016 11:49:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r59645 r59650 1891 1891 } 1892 1892 1893 rc = VERR_WEB_NOT_AUTHENTICATED; 1894 AuthResult result; 1895 if (pfnAuthEntry3) 1896 { 1897 result = pfnAuthEntry3("webservice", NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL, true, 0); 1898 WEBDEBUG(("%s(): result of AuthEntry(): %d (%s)\n", __FUNCTION__, result, decodeAuthResult(result))); 1893 if (pfnAuthEntry3 || pfnAuthEntry2 || pfnAuthEntry) 1894 { 1895 const char *pszFn; 1896 AuthResult result; 1897 if (pfnAuthEntry3) 1898 { 1899 result = pfnAuthEntry3("webservice", NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL, true, 0); 1900 pszFn = AUTHENTRY3_NAME; 1901 } 1902 else if (pfnAuthEntry2) 1903 { 1904 result = pfnAuthEntry2(NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL, true, 0); 1905 pszFn = AUTHENTRY2_NAME; 1906 else 1907 { 1908 result = pfnAuthEntry(NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL); 1909 pszFn = AUTHENTRY_NAME; 1910 } 1911 WEBDEBUG(("%s(): result of %s(%s, [%d]): %d (%s)\n", 1912 __FUNCTION__, pszFn, pcszUsername, strlen(pcszPassword), result, decodeAuthResult(result))); 1899 1913 if (result == AuthResultAccessGranted) 1900 rc = 0; 1901 } 1902 else if (pfnAuthEntry2) 1903 { 1904 result = pfnAuthEntry2(NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL, true, 0); 1905 WEBDEBUG(("%s(): result of VRDPAuth2(): %d (%s)\n", __FUNCTION__, result, decodeAuthResult(result))); 1906 if (result == AuthResultAccessGranted) 1907 rc = 0; 1908 } 1909 else if (pfnAuthEntry) 1910 { 1911 result = pfnAuthEntry(NULL, AuthGuestNotAsked, pcszUsername, pcszPassword, NULL); 1912 WEBDEBUG(("%s(): result of VRDPAuth(%s, [%d]): %d (%s)\n", __FUNCTION__, pcszUsername, strlen(pcszPassword), result, decodeAuthResult(result))); 1913 if (result == AuthResultAccessGranted) 1914 rc = 0; 1914 { 1915 WebLog(("Access of '%s' granted\n", pcszUsername)); 1916 rc = VINF_SUCCESS; 1917 } 1918 else 1919 { 1920 if (result == AuthResultAccessDenied) 1921 WebLog(("Access of '%s' denied\n", pcszUsername)); 1922 rc = VERR_WEB_NOT_AUTHENTICATED; 1923 } 1915 1924 } 1916 1925 else if (fAuthLibLoaded) 1917 // fAuthLibLoaded = true but both pointers are NULL: 1918 // then the authlib was "null" and auth was disabled 1919 rc = 0; 1926 { 1927 // fAuthLibLoaded = true but all pointers are NULL: 1928 // The authlib was "null" and auth was disabled 1929 rc = VINF_SUCCESS; 1930 } 1920 1931 else 1921 1932 { 1922 1933 WEBDEBUG(("Could not resolve AuthEntry, VRDPAuth2 or VRDPAuth entry point")); 1934 rc = VERR_WEB_NOT_AUTHENTICATED; 1923 1935 } 1924 1936
Note:
See TracChangeset
for help on using the changeset viewer.