How to setup virtual Active Directory server in Windows 7 OS? - active-directory

I want to automate the following scenario:
I need install a 3rd party software. During this installation, i need to provide the following info:
AD domain name
AD domain controller IP
AD domain username
AD domain password.
If I provide the above info, software will fetch user info from AD.
Instead of creating a separate AD server in another machine, I want to setup a AD setup in my Windows 7 PC itself.
I have tried AD LDS. But I am unable to get info about how to setup the above FOUR parameters.
Any idea on how to solve this issue?
Is there any open source tool to configure the above setup in Windows 7?

Related

"a specified logon session does not exist. it may already have been terminated" after i joined the device to azure active directory

"a specified logon session does not exist. it may already have been terminated" after i joined the device to azure active directory
-i can't access our shared folder in our server after i joined the device to azure AD and use office 365 account (Please see click the link below to see the error image for your reference), but if i use local administrator of the device i can access the file server using the credentials with no problem, please note that we don't have an premises active directory or GPO, kindly help me.
a specified logon session does not exist. it may already have been terminated
Instead of specifying just "binos" as your username, add hostname with back-slash like so:
yourhostname\binos
In most cases, this will fix that error.
To access the share, the server would also need to be azure ad joined. which you cannot do with windows server, you would need azure ad Domain Services (AD DS) on azure, then join your file server to that.
Only Windows 10 devices can be "azure ad-joined devices"
If you don't want to do that, you could create a azure file store, and secure it using your azure ad / rbac, then map that on your devices.. that would probably work too.

How to use Active Directory Authentication in ASP.NET Core?

I am using the ASP.NET Core 2.1 React SPA Microsoft template.
I want to use Active Directory for user authentication. Our server runs on a corporate network using Active Directory domain identities.
How can I do it?
The best way is to use Windows authentication. However, that will only work if the server you run this on is joined to the domain (or a trusted domain).
If not, then you will have to use Forms Authentication, where the user enters their username and password, and you authenticate against AD in your code via LDAP. There are two ways to do this in .NET Core:
If you will only run this on a Windows server, then you can install and use the Microsoft.Windows.Compatibility NuGet package.
Use the third-party Novell.Directory.Ldap.NETStandard.
There are two answers on this question that describe how to implement both solutions.

Cannot add users to ACL from Windows on a SMB share because windows uses wrong username to login to LDAP

I have a running Samba as Active Directory Domain Controller with shares. I have Windows 10 clients. These clients have Windows Home edition so they cannot join the domain. What I want is to be able to access the share from windows using specified credentials and the ability to edit ACLs from Windows.
So far I can connect to the share and create files inside of it. I can also set the ACL from linux. I can also edit ACL from Windows for users that already have some permissions. (Are visible in the permission window on Windows).
What I cannot do is to add permission to an existing user from Windows. The Windows is trying to find the user using wrong credentials (when adding the user to ACL). Windows is using its hostname as username to login to the LDAP server (managed by the same Samba instance) instead of using the username that is logged in to the share.
I have confirmed this weird behavior using Wireshark.
My domain name: PRESTOL
User with access to the share: PRESTOL\Administrator
The actual user windows is logging in while trying to find the user: Hostname of the windows machine.
Is there a way to force the windows client to list the users using the user accessing the share (PRESTOL\Administrator) instead of the client hostname?
Thank you.

Windows 10 Organization Configured PC unable to Access Local Shared Drive

I've inherited a mess from the IT "professional" I replaced and have been unable to successfully lobby for resources to setup a proper domain. I have Windows 10 PC's that are configured as "organizational" PC's not Personal, which allows our users to sign-in with their office365 accounts.
However when they do this they are logged in via AzureAD\ Domain, I'm certain this is the reason they cannot access the shared drives my organization has been using. I would very much like to keep using this AzureAD setup but if I cannot access local network resources it won't work for me.
I've searched around but maybe I haven't been asking the right question to find a solution to my problem, or it's possible one doesn't exist which would be unfortunate.
Has anyone ran into this issue?
Is there a way to access non-AzureAD domain resources from an AzureAD\User Account?
You will need a DC (a virtual machine (VM) in the cloud or a physical server).
That DC has Azure Active Directory (AAD) Connect installed and configured on it. That creates an account in AD that synchronizes accounts and passwords with AAD.
When a computer joined to AAD logs in it sends the login request to AAD. AAD then validates that authentication request against the information synchronized from AD.
If you have workstations and laptops joined to AAD and they try to access a share on a server that is in a different domain than what AAD synchronizes with you are going to need to provide credentials that exist in the server which hosts the resources, you are trying to access.
There are a few right ways to do this as,
If the clients are in a single location and will always be in the same location as the DC then join them to the domain regularly. For clients that will be used in other locations join those computers to AAD and install AAD Connect in the DC.
If you want to move all the servers out of your office spin up a VM for your DC in Azure and deploy a cloud firewall in front of your VM. Create a Site-to-Site Virtual Private Network (VPN) between the cloud firewall and your office firewall. Now join computers that will always be in the office to the domain like normal, join computers that are going to be used remotely to AAD, and install AAD Connect on the DC.
Refer: Windows 10 AAD Azure ad domain joined & SMB share, where similar discussion has been done

SSO setup using Kerberos on windows server

I am new to SSO, We had a application using java implementation of kerberos SSO. Now we need to migrate the application to some other machine. I need to know what changes will be required in:
1. Service account in Active directory used for authentication.
2. Keytab files
3. Can the same AD principle name be used or a new one will be required.
Please assist with appropriate steps which are needed to be followed.
Appreciate your help!
Thanks.
If you use service account in AD then I would expect not big changes:
DNS record for this service
Moving keytab to the new server
If machine account is in use then you would need:
Reconfigure DNS
Remove SPN from the current machine account
Generate keytab for a new machine

Resources