fuse59650 Posted December 13 Posted December 13 Hello, I have an error with the version of Windows 11 24h2, when I want to make a connection to our Active Directory with the _AD_OPEN function, it fails with a return code 8 and an extended code -2147352567. With a 23H2 no problems. I use version 1.6.1.0 of your library and I also tried with the 1.6.3.0 without success. Authentication is initiated from a machine not connected on AD (workgroup). Here are the call parameters: _AD_OPEN (User, Password, "DC = AD, DC = Univ-Lille, DC = Fr", "Ad.univ-lille.fr", "CN = configuration, DC = AD, DC = Univ-Lille, DC = FR ", 1) Sincerely
water Posted December 14 Author Posted December 14 Can you please call _AD_ErrorNotify(2) before calling _AD_Open and post the result? Which format do you use for User/Password? Details can be found in the Remarks for _AD_Open: _AD_Open will use the alternative credentials $sUserIdParam and $sPasswordParam if passed as parameters. $sUserIdParam has to be in one of the following formats (assume: domain name = Contoso, DNS domain name = Contoso.com, samAccountName = DJ, Firstname = John, Lastname = Doe) * Windows Login Name/SamAccountName e.g. "DJ" * User Principal Name: UserPrincipalName attribute e.g. "John.Doe@Contoso.com" * User Principal Name: sAMAccountName plus DNS name of a domain in the same forest e.g. "DJ@Contoso.com" * The NetBIOS domain name, followed by a backslash ("\"), followed by the value of the sAMAccountName e.g. "Contoso\DJ" My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
fuse59650 Posted Monday at 03:03 PM Posted Monday at 03:03 PM Hello, I use the SAM account with the associated password.
water Posted Monday at 06:43 PM Author Posted Monday at 06:43 PM (edited) As you can see from field "Description" the username or password seem to be incorrect. On 12/13/2024 at 2:57 PM, fuse59650 said: _AD_OPEN (User, Password, "DC = AD, DC = Univ-Lille, DC = Fr", "Ad.univ-lille.fr", "CN = configuration, DC = AD, DC = Univ-Lille, DC = FR ", 1) Unfortunately I no longer have access to an AD environment, so I have to ask a lot of questions Does it make any difference when you remove the excess space characters? _AD_OPEN (User, Password, "DC=AD,DC=Univ-Lille,DC=Fr", "Ad.univ-lille.fr", "CN=configuration,DC=AD,DC=Univ-Lille, DC=FR", 1) of when you set $iSecurity to 0? _AD_OPEN (User, Password, "DC=AD,DC=Univ-Lille,DC=Fr", "Ad.univ-lille.fr", "CN=configuration,DC=AD,DC=Univ-Lille,DC=FR", 0) Edited Monday at 06:52 PM by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
fuse59650 Posted Tuesday at 08:07 AM Posted Tuesday at 08:07 AM Hello, sorry if he seems to have spaces but no there is none. I also tried with the $ iSecurity parameter at 0 (2 too) but no change. It is really with the 24H2 version because with a 23H2 client and the same parameters, no problems. I mainly use your library under Winpe to install Windows images with a personalized configuration file. I can stay with an 23H2 image but I wanted to raise the problem. It can wait until the day when you will have access to an Active Directory environment. Otherwise I will try to test directly with "ADO Open Method" used in the _AD_OPEN function.
water Posted Tuesday at 08:48 AM Author Posted Tuesday at 08:48 AM I do not know what changed from 23H2 to 24H2 😕 But I fear I will never know because me not having access to an Active Directory is permanent 😞 Maybe you get better error information when trying the following: https://www.autoitscript.com/wiki/Active_Directory_UDF_-_General#Error_handling Specify the UserID as NetBIOS Login Name or User Principal Name and you will get additional information about the error. It might be a problem of raised security requirements by MS as described here: Here you can get more information about what changed (after 2020): https://support.microsoft.com/en-us/topic/2020-2023-and-2024-ldap-channel-binding-and-ldap-signing-requirements-for-windows-kb4520412-ef185fb8-00f7-167d-744c-f299a66fc00a Another idea: The MS Event Viewer might provide more detailed error information. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
water Posted Tuesday at 09:06 AM Author Posted Tuesday at 09:06 AM (edited) There seem to be problems with 24H2 and AD (according to Google). UN&PW invalid (Username & Password): https://community.spiceworks.com/t/win11-24h2-breaks-ldap-authentication-for-enterprise-app/1139078/26 Solution seems to be to logon using the NetBIOS Login Name e.g. "Your Domain\Your Userid" (For details please see: https://www.autoitscript.com/wiki/Active_Directory_UDF_-_General#To_current_domain) You get more hits when telling Google to search for "active directory windows 11 24h2 authentication failed" If the NetBIOS logon does not work I suggest to stay with 23H2 until MS fixes the problem or someone can explain what else happened (raised security requirements ...). Edited Tuesday at 02:22 PM by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
fuse59650 Posted Tuesday at 11:16 AM Posted Tuesday at 11:16 AM Okay, thank you very much for the information, I will follow it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now