Tito Brasolin
wading in the water Posts:21
|
12-28-2010 12:07 AM |
|
It looks like the new feature to allow the user to be able to sign in with the UserID does not work in Dynamic Login 3.5
The UserID we input in txtUsername is ignored as if a UserID = 1 was harcoded somewhere: after a failed login attempt the txtUsername textbox contains the username which corresponds to userid = 1 …
|
|
|
|
|
Ryan Bakerink
river guide Posts:1900
|
12-28-2010 08:35 AM |
|
Hello Tito,
There is a feature in which you can allow users to login using their UserID. In order to enable this you must enable the feature under Module Configuration labeled "Allow user to login with their User ID (separate from UserName):".
Enable this by checking the checkbox and then this should allow the users to login using their userId.
If you have any questions please let me know.
Thanks,
Ryan
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
12-31-2010 03:29 AM |
|
Posted By Ryan Bakerink on 12-28-2010 10:35 AM
Hello Tito,
There is a feature in which you can allow users to login using their UserID. In order to enable this you must enable the feature under Module Configuration labeled "Allow user to login with their User ID (separate from UserName):"
Hello Ryan, in fact I have already enabled that feature... It really does look like UserId is ignored and UserID = 1 is used instead I inspected the dll with Lutz Roeder's Reflector and found that if "allowuserid" is true, then username = UserController.GetUser(Me.PortalId, 1, True).Username.ToString It sounds strange to me... My dll is DataSprings.DNN.Modules.DynamicLogin, Version=3.5.0.16381 |
|
|
|
|
Ryan Bakerink
river guide Posts:1900
|
01-20-2011 11:47 AM |
|
Hello Tito,
I'm sorry for the tardy response, but as you can imagine sometimes forums get lost/misplaced.
Are you still having this issue?
That's strange that User Id =1 is always being passed.
Please provide more information on this, is this everytime or only sometimes?
Thanks,
Ryan
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
02-13-2011 11:21 PM |
|
Thank you Ryan, as you can see we're not in a hurry . The problem happens everytime with both dnn 4 and 5, i just tested dnn5: - Case 1 (host): http://example.com/dnn5/login.aspx?username=1
The "user name" textbox contains "1" (= host user). I fill the form with the "host" password -> Success! - Case
2 (admin): http://example.com/dnn5/login.aspx?username=2 The "user
name" textbox contains "2" (= admin user). I fill the form with the
"admin" password -> Login Failed! and the textbox still contains "2".
- Case
3 (non existent user): http://example.com/dnn5/login.aspx?username=3
The "user name" textbox contains "3" (= non existent user). I fill the
form with a random password -> Login Failed! (of course).
But if i go to http://example.com/dnn5/login.aspx?username= WHATEVER and I fill the form with the host's password, I always login as host.
Please contact me if you want a link to a test dnn5 installation so that you can try it yourself... |
|
|
|
|
Ryan Bakerink
river guide Posts:1900
|
02-14-2011 01:52 PM |
|
Hello Tito,
I believe that the URL will need to have 3 parameters in order to work for every single user.
For instance there will be the autosignin, username, and password name-value pairs in the querystring.
So the URL to the page with Dynamic Login should be in similar format:
www.example.com/dnn5/login.aspx?username=TheUserName&password=ThePassword&autosignin=true
If you have any questions please let me know.
Thanks,
Ryan
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
02-16-2011 11:46 PM |
|
Hi Ryan, we don't need autosignin, we realized that we can login as "host" (and only as host, other users are not recognized) by filling the form with - User name: any existing user id
- Password: host's password
(querystring can be empty) |
|
|
|
|
Ryan Bakerink
river guide Posts:1900
|
02-17-2011 07:25 AM |
|
Hello Tito,
So this explains why you can use the hard coded URL.
So can you do me a favor and provide me an example of what you're doing from either your site or create an example of this on our test environment (www.betasprings.com)??
Credentials for betasprings:
host / dnnhost
I'm having trouble understanding the exact workflow that you're trying to accomplish.
If you have any questions please let me know.
Thanks,
Ryan
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
02-17-2011 09:16 PM |
|
Thank you Ryan, I'm just trying to login with * User name: UserID * Password: UserID's password I have enabled login with UserID: http://www.betasprings.com/Dynamic-...fault.aspxJust try it, you'll be able to login with * User name: 140 * Password: dnnhost or * User name: 139 * Password: dnnhost or * User name: any valid UserID * Password: dnnhost You'll always be logged in as "host", other passwords will not be accepted... |
|
|
|
|
Chad Nash Posts:5260
|
02-18-2011 10:08 AM |
|
Hi guys, I checked this out via the source code today and Tito is right (Sorry Tito!). The value was hard coded, maybe when we were testing this in 3.5. Anyway, the 3.6 version is already in development so this fix will go into that release as there are no upcoming patches since its in its near the final release cycle (mostly some new Facebook integration enhancements in 3.6). Thanks for bringing this to our attention. -Chad
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
03-10-2011 10:52 PM |
|
Thank you, Chad. By the way, I did one more little test: http://www.betasprings.com/Default....tabid=1052I activated SSO with role synchronization, try and login with host/dnnhost: | A critical error has occurred. Invalid column name 'CreatedByUserID'. Invalid column name 'CreatedOnDate'. Invalid column name 'LastModifiedByUserID'. Invalid column name 'LastModifiedOnDate'. |
In fact CreatedByUserID, CreatedOnDate, LastModifiedByUserID and LastModifiedOnDate fields are not in DNN4 UserRoles table, as far as I know they are DNN5 only. |
|
|
|
|
Ryan Bakerink
river guide Posts:1900
|
03-11-2011 10:55 AM |
|
Hello Tito,
Do you have the correct version of Dynamic Login?? We have 2 separate versions of Dynamic Login 3.5
One for DNN versions 5 on up and one for DNN 4.9 and below all the way to 4.5.
Can you please go to Host -> Module Definitions click the pencil icon of Dynamic Login and you should have access to more information on that module.
Let me know the details from this area.
Thanks,
Ryan
|
|
|
|
|
Tito Brasolin
wading in the water Posts:21
|
03-11-2011 11:01 AM |
|
Hi Ryan, it's a test I did on your "beta" website, just follow the link above...
|
|
|
|
|
Chad Nash Posts:5260
|
03-15-2011 03:27 PM |
|
Hi Tito - Yes, we found this issue out shortly after going live with Dynamic Login 3.5. Basically if you want to use the feature 'Always sync user roles' then you will need to be running on DNN 5.x or higher at this time (or modify a stored procedure and if you need it I can probably find it for you). Depending on your implementation though its possible you don't even to... This feature checks the parent portal each and every time the user signs in to see if their roles match with the parent portal. If you leave this unchecked the login SSO process DOES add them to the roles from the parent portal that they have (initially for the first time). So, the question is... do you really need this check/change of the users roles to be created for each and every time they sign in? Thanks! -Chad -Chad
|
|
|
|
|