Esempio n. 1
0
        IntPtr IApplicationHost.GetConfigToken()
        {
            if (null != _functions)
            {
                return(_functions.GetConfigToken(_appId));
            }
            IntPtr token = IntPtr.Zero;

            String        username;
            String        password;
            IServerConfig serverConfig = ServerConfig.GetDefaultDomainInstance(_iisVersion);
            bool          hasUncUser   = serverConfig.GetUncUser(this, _virtualPath, out username, out password);

            if (hasUncUser)
            {
                try {
                    String error;
                    token = IdentitySection.CreateUserToken(username, password, out error);
                }
                catch {
                }
            }

            return(token);
        }