Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuto User Creation/Auto LoginAuto User Creation/Auto Login
Previous
 
Next
New Post
9/28/2006 8:03 PM
 

I am using the current version of DNN 4.3.5.

I recently upgraded from a 3.x  version.

When users visit the site that have previsouly been auto -setup using the 3.x version they Auto login as intended. However, when a new user that has never visited the site opens the portal the infinite loop problem starts. If I disable windows login and use form authentication and they manually sign in it works perfectly. However, this casues the user to manually signin where they are used to being auto logged in. Is there a solution for fixing the user creation issue with the auto login enabled? Any help is appreciated. Thanks!

 

 
New Post
9/28/2006 9:06 PM
 

I have read many of the previous posts with similar issues. I have came to the following resolution, but I would really like to find the fix to the underlying problem. I have disabled The windows authentication in the web.config and enabled form authentication.  I have removed default.aspx from teh list of useable startup pages in IIS and created a default page with a redirect to the windowssignon page. This will automatically login any user that is already a valid user; however, all new users must amanually login once. After the initial login when they revisit the site they are automatically logged in. If you have any suggestions on how to fix this issue please let me know.  I would like to have the site functioning as previously where all new users would be created as they visited. Thanks

 

 
New Post
9/29/2006 10:51 AM
 

I was having the same problem. All I needed to to was use Forms Authentication in the web.config and copy the windowssignin.aspx from the admin area to the root. I then have the site call that on startup instead of the Default.aspx. Everything works fine that way. It logs in the user and/or creates them as required. Be sure the host configuration is set up for active directory autentication. Hope this helps.

 
New Post
10/3/2006 5:50 AM
 
mtndwell wrote

I was having the same problem. All I needed to to was use Forms Authentication in the web.config and copy the windowssignin.aspx from the admin area to the root. I then have the site call that on startup instead of the Default.aspx. Everything works fine that way. It logs in the user and/or creates them as required. Be sure the host configuration is set up for active directory autentication. Hope this helps.



that is not enough for us...
This way is the famous "mixed" login of forms & windows but what if we need to maintain our identification token and pass it to other applications, like Reporting services...

we get the following:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation.

Instead of using the current user which has being logged in as it is being done in forms way...

The problem with the "windows authentication mode" is that it doesn't create the users... don't know why...

any help on the matter??
Many thanks,
Jose

 
New Post
10/3/2006 6:15 AM
 
For a little more of clarity, I set up some code that calls a web service this way:

rs2005.ReportingService2005 rs = new rs2005.ReportingService2005();

System.Net.ICredentials netCredential;

netCredential = System.Net.CredentialCache.DefaultNetworkCredentials; //This is getting Network authority/System on the forms login method. on the other way it gets the domain user logged onto windows domain\username...

rs.Url = urlSSRSWebService; //This connects to the reporting services web server..

If that doesn't work, I would have to get the user data (name, domain, pass) and do this:
netCredential = new System.Net.NetworkCredential(username, password, domain);

but, how do I get the password in order to pass it to the webservice??

The right thing should be that the users get auto created in windows login mode... might be a permission issue? anyway, lots of people are having this problem that the users are not created...

any help on this?

Thanks a lot!!
JL
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuto User Creation/Auto LoginAuto User Creation/Auto Login


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out