ASP.NET membership - User exists but can't log in - asp.net-membership

Having my website open in Visual Studio I go to Website|ASP.NET configuration. The I click the Security tab. From there I create a new user. I assign a role to it. Then when I try to log in to my website using it I get Login failure. I deleted and recreated the user 10 times. But the problem persists. I checked the Membeship table, the userid exists in the table. It's approved and is not locked out. What else do I have to check? I can log in using previously created users.

Related

Dynamics 365 Portals - Employee Self-Service - 'Content Editor Tool' not appearing for 2nd Admin user

I have a trial Dynamics 365 Portal for Employee Self-Service. I am also seeing this issue in my real Office 365/Dynamics 365 instance.
For my first Admin user I was able to log into the Portal, add them to the Administrator web role, log in again and see the 'Content Editor Tool' floating in the top right corner. All good.
For a second Admin user I do exactly the same thing... but no 'Content Editor Tool' appears. I have tried to match both the first Admin account and the second Admin account exactly the same but nothing happens.
I have also Restarted the Portal from the Admin center and have turned the Portal off and on again.
Is there anyway I can diagnose why this second Admin is not working?
I worked it out. Web Roles and Security Roles are not the same.
Security Roles are set at User level and provide access to Dynamics 365.
Web Roles are set at Contact level and provide access to the Portal.
For the other Portals you just send an Invitation Workflow, and I still had to do this step even though the User had been created already by virtue of logging into the Employee Self Service (ESS) portal. I created the invite for the Contact, saved it, added the Administrator Web Role, and then selected 'Other Activities' (in the ... button) and then 'Invite Redemption'.
In the 'Invite Redemption' dialog, select the Contact again, provide any username, and click the 'Save' button.
This will complete the workflow to add the Web Role. Next time you log in as that user the tool will be visible.

How to abandon changes in VSS for absent/gone user?

I'm trying to clean up a project in VSS2005 so it can Built one last time for a maintenance release before moving into TFS. However, I have one file that is currently checked out to a user who no longer exists, not even in the VSS database. We don't know what changes the user made to the file, but we don't care. We just want the checkout removed.
How is this to be done? There doesn't seem to be any options for this.
Or are we just screwed with no path out of the hole?
You can log in SourceSafe Admin as admin and undo checkouts of the gone user from there.
Here you can learn more details:
https://support.microsoft.com/en-us/kb/150648
As sometimes happens, after posting the question an idea occurred to me. I have noticed in times past that when creating a new user for VSS, the administrator can either give the user the same username as he or she logs in to his or her PC as, and not specify a password for VSS, thus letting the user's security context govern, or the administrator can specify a VSS password for the user.
Here is what I did:
Recreated the user in VSS Admin, as the Administrator
Gave the user a specific password
Started VSS, and selected File --> Open Source Safe Database
Selected the VSS database, filled in the Username with the new user's username (logging in as a different user)
When challenged for password, entered the password I assigned to the user
At this point I was then able to Undo the Checkout
Whew!

Strange folder creation in windows

I need some help in understanding a problem. Here is the scenario. We have a windows domain controller machine and several machines in that domain. (Everything in windows 2008). In one of the machines in that domain (machine name AlphaSiter) our own custom java based product is installed. To log on into our product, you have to provide a user/password combo which is validated against the active directory. Now here is the scenario.
Log into the domain controller and create a user (say David) in the active directory and set the “User must change password in next login option”.
Go to the machine called AlphaSiter where our custom product is installed and try to login to our product with the newly created user credentials and then change password successfully.
The side affect is that in the AlphaSiter machine in C:\Users the user folder is created..that is c:\Users\David. Also this folder is only created if at the time of user creation the “User must change password in next login option” is set. This user folder is not created if the option is unchecked. We are not creating the folder programmatically from our code. So I am wondering how this folder is getting created.Is it something that windows does internally?
Any help on this would be appreciated as I have to give explanation to our customer ---:)
The user's profile folder is always created when there is some profile information that needs to be stored. It may be some registry settings in HKCU hive.
You can use RegMon to track regitry activity.

How do I access a NAS through my ASP.NET MVC Application?

I'd like to access a Fileserver (NAS) through my ASP.NET MVC Application and can't find a way to do that in a correct way.
What I've done so far is:
Created a User with Read/Write permissions on a directory on my NAS
Created a virtual directory on my IIS Server that is connected to the nas directory with the previously defined usercredentials
Now if I navigate to my virtual directory (AppliCationIPAdress/NAS) I get automaticaly redirected to \NASIPAdress\My\Directory. On the NAS loginnotifications I get the info, that somewone connected to my directory with the given credentials => That is how it should be
But if I access the NAS directory trough my MVC application (no matter if i use the UNC or the virtual directory redirection) i get an access denied erromessage and in the NAS loginnotifications there is not listed my prepared useraccount but my webserver as user who tried to login.
var dirName = Server.MapPath("~/NAS/Dir/");
ViewBag.Message = System.IO.Directory.GetFiles(dirName );
Could someone please explain why that is happening and what I have to do if i want to access files on a fileservice throuh my mvc application?
You have to give the service account rights to access the filearea, or run the app with a user that has rights
What worked for was:
Have same user account and password in NAS and IIS Server.
Create an application pool for your web app or use the default app pool and change the user account to the same mentioned before. Steps:
Go To IIS Manager
Click on Application Pools
Right click on the app pool assigned to your web app and select Advanced settings...
In section Process Model change the Identity field to the user account mentioned above.
Click on the 3 dots button located at the right of the field
Select Custom account and click on Set... button
Set username, password and password confirmation (same user account mentioned above.
Hope it helps!
FranciscoG

Azure MVC 3 Project - What is the default Admin account password

I have just created a new project in VS2010 using the
Visual c# > Cloud > Windows Azure Project
template.
When I run it I would like to log in using the Admin account which I know exists in the secMembership table.
I assume there is a password published, but I can't find a reference to it anywhere. Am I missing some documentation somewhere or am I not concerned with this account?
Thanks
Are you talking about the Winodws 8 Toolkit? If so, try:
User Name: admin
Password: Passw0rd! (with a zero)
Otherwise the password may be just: password
If those don't work, try clicking on the ASP.NET Configuration button at the top of the solution explorer and click on the security tab. You should be able to create a new user or at least see if there is an admin account already. Chances are there isn't one yet.

Resources