 | |  |
 | |  |
 | |  |
 | |  |
 | |  |
 |
|
|
Joined: 4/24/2003
Posts: 46
|
|
|
I'm installing a new 4.3.3 intranet site that uses windows authentication. I'm finding that if a valid domain user hits the site and they have not had a DNN account pre-created for them, the server will not create one for them. All it does is make thousands (yes, thousands) for SQL calls to GetUserByUserName. Eventually the user sees nothing is happening and goes away. I think that may be the only thing preventing from these calls going on forever.
Like I said, the site is operating fine for users who have been manually created. We have a similar older DNN installation using 3.2.2 and users are getting created automatically on that installation just fine. I checked the settings between the two installations and can't find anything od consequence that is different.
Naturally, I'm looking for a fix for this, but even if you don't have one, if you are running a 4.x intranet site and you are getting users created okay, then please let me know. I'd like to at know that this is possible.
Thanks,
|
| |
|
|
 |  |
|
|
Joined: 7/2/2006
Posts: 11
|
|
|
Hi, I got it to work but it took a bit of knowledge from someone else... read this post from kimberlyrox: http://www.dotnetnuke.com/DotNetNukeProjects/CoreActiveDirectory/Forums/tabid/912/forumid/89/threadid/53005/scope/posts/Default.aspx Sorry about the url the hyperlink button isnt working :(
My Specs Are: DNN 4.3.3 Windows 2000 SP4 (IIS 5) ASP.Net 2.0.50727 SQL2005Express (using database with SQL authentication not default .mdf)
I too installed my site then had the problem where my first time domain users were not having their User details registered. I guess its due to the step in the above post where you disable anonymous for the WindowsSignin.aspx file. If they can log in anon what data will populate the user??? makes sence.
Mine is fully functioning now with new users being automatically logged in and their user details are populated... however there is a small bug that needs fixing. The Display Name field is not automatically populated by AD. That means the user cannot see their Display Name link next to the Logout Link and therefore cannot access their User details. So far I have been logging in as Admin and manually adding the Display Names (for 200+ domain users). This should be easy t0 solve with a simple String Manipulation (Display Name = First + Last) but I dont know where to code that.
PS one other thing I noticed is our domain has a 5 character min for passwords, if you dont change the default min (7) in the Web.Config file your users with less then 7 character passwords will not be able to log on. If your using AD for it you can probably drop this to 1 and let your real Active Directory policies look after password length.
Hope this helps.
|
| |
|
|
 |  |
|
|
Joined: 8/2/2005
Posts: 8
|
|
|
Marc,
I now remember there was one time when I saw the site enter into infinite loop last week (although I didn't check which procedure it was calling), when I was installing DNN 4.x with Windows Authentication. Did you enable <authentication mode="Windows" /> in the Web.config? That's what made it loop in my case.
It is a common pitfall, as it should remain <authentication mode="Forms" />!! The Integrated Windows Authentication is being enabled in IIS, and you also enable (uncomment) the "Authentication" HTTP module in Web.config (which is the one that makes automatic sign-on happen).
In fact, to make incremental steps and check that stuff is working as expected, I suggest not to enable "Authentication" module straight away. You can duplicate what it is doing manually by pointing browser to \Admin\Security\WindowsSignin.aspx, which will log you on using current Windows credentials that IIS passed in to the app. After this is working, enable the "Authentication" module to make this happen automatically.
I also made a Login page (and set it as default Login page for the site), where I put the usual login control, so that Administrator/Host can login, and a link to the \Admin\Security\WindowsSignin.aspx page called "Sign-in using Windows Authentication". Reason is that users can still Logout even if signed in automatically, to sign back in they would click on the link. Administrator and Host, however, have to sign in using DNN authentication, hence the login control. (NOTE: Make sure login control is added before setting the page as Login page, otherwise you may never login into DNN again!).
Hope this helps.
Cheers, Lev.
|
| |
|
|
 |  |
|
|
 |
www.avanced.net Joined: 5/7/2003
Posts: 552
|
|
|
I'm having a similar problem w/DNN 4.3.3. I have had the AD Integration working correctly in 4.3.2, 4.3.1...so, I do know how to set it up. However, in DNN 4.3.2...the user is automatically signed in...but know name appears in the Display name. Also, when I log on as "host" and access the Users->All I get the following. I would say there's something wrong w/AD Authentication in DNN 4.3.3 (it looks like it is not integrated w/the new Profile Properties):
ModuleId: 357 ModuleDefId: 15 FriendlyName: User Accounts ModuleControlSource: Admin/Users/Users.ascx AssemblyVersion: 04.03.03 PortalID: 0 PortalName: Northop Grumman IT Solutions UserID: 1 UserName: host ActiveTabID: 42 ActiveTabName: User Accounts RawURL: /APW3/Admin/UserAccounts/tabid/42/filter/All/currentpage/1/PageRecords/10/Default.aspx AbsoluteURL: /APW3/Default.aspx AbsoluteURLReferrer: http://t163162/APW3/Admin/UserAccounts/tabid/42/Default.aspx UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: 5e3569d7-ee83-4f5c-aee7-006506df5067 InnerException: Object reference not set to an instance of an object. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: DotNetNuke.UI.WebControls.TextColumnTemplate.GetValue StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.WebControls.TextColumnTemplate.GetValue(DataGridItem container) at DotNetNuke.UI.WebControls.TextColumnTemplate.Item_DataBinding(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at DotNetNuke.Modules.Admin.Users.UserAccounts.BindData(String SearchText, String SearchField) at DotNetNuke.Modules.Admin.Users.UserAccounts.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace --- Source: Server Name: T163162
|
| |
|
|
 |  |
|
|
Joined: 11/23/2004
Posts: 40
|
|
|
favance wroteI'm having a similar problem w/DNN 4.3.3. I have had the AD Integration working correctly in 4.3.2, 4.3.1...so, I do know how to set it up. However, in DNN 4.3.2...the user is automatically signed in...but know name appears in the Display name. Also, when I log on as "host" and access the Users->All I get the following. I would say there's something wrong w/AD Authentication in DNN 4.3.3 (it looks like it is not integrated w/the new Profile Properties):
Ditto. Running 4.3.3 with AD which ran fine using 4.3.1 and 4.3.2, but now doesn't seem to be creating users correctly Users can log into the system, however, account info is not being created. I'm getting very similar error message when I try to access the User Accounts module: ModuleId: 354 ModuleDefId: 15 FriendlyName: User Accounts ModuleControlSource: Admin/Users/Users.ascx AssemblyVersion: 04.03.03 PortalID: 0 PortalName: My Website UserID: 7 UserName: XXXXX\xxxxxxxxxxd ActiveTabID: 42 ActiveTabName: User Accounts RawURL: /Admin/UserAccounts/tabid/42/filter/All/currentpage/1/PageRecords/10/Default.aspx AbsoluteURL: /Default.aspx AbsoluteURLReferrer: http://www.xxxxxx.org:8080/Admin/UserAccounts/tabid/42/Default.aspx UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: 5094b195-905c-4544-94e4-7b31da19d081 InnerException: Object reference not set to an instance of an object. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: DotNetNuke.UI.WebControls.TextColumnTemplate.GetValue StackTrace: Message:
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference
not set to an instance of an object. --->
System.NullReferenceException: Object reference not set to an instance
of an object. at
DotNetNuke.UI.WebControls.TextColumnTemplate.GetValue(DataGridItem
container) at
DotNetNuke.UI.WebControls.TextColumnTemplate.Item_DataBinding(Object
sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs
e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at
System.Web.UI.Control.DataBind() at
System.Web.UI.Control.DataBindChildren() at
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at
System.Web.UI.Control.DataBind() at
System.Web.UI.Control.DataBindChildren() at
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at
System.Web.UI.Control.DataBind() at
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32
dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) at
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) at
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at
System.Web.UI.WebControls.BaseDataList.DataBind() at
DotNetNuke.Modules.Admin.Users.UserAccounts.BindData(String SearchText,
String SearchField) in F:\dnnstaff\Admin\Users\Users.ascx.vb:line 209
at DotNetNuke.Modules.Admin.Users.UserAccounts.Page_Load(Object sender,
EventArgs e) in F:\dnnstaff\Admin\Users\Users.ascx.vb:line 493 --- End
of inner exception stack trace --- Source: Server Name: xxxxxxx
|
| |
|
|
|  |
 | |  |
 | |  |
 | |  |
|
| |

Forum Policy
These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.
For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.
|