active-directory

WCF REST : (C# 4.0 template) Securing with windows authentication and hosting in a windows service?

≡放荡痞女 提交于 2020-01-17 13:49:06
问题 I am trying to find out how to secure my web services with Windows Authentication (Active Directory). I am using the "NEW" templates provided for c# 4.0 (vs 2010) and currently have this but i need to host it in a windows service - is this possible? I thought the WCF Rest clientCredentialType ="Windows" actually uses IIS to provide this type of security? I have searched the internet and found many examples with C# 3.5 but none for the new template provided to vs 2010 C# 4.0 to create a rest

Move Object to an OU in Active Directory

丶灬走出姿态 提交于 2020-01-17 12:39:30
问题 I want to move a computer object to another OU I am connected to another domain and I always getting an exception of type ComException "A referral was returned from the server" and the object never move! try { //I get the exception here computerObject.MoveTo(new DirectoryEntry("LDAP://OU=someOU,OU=parentOU,DC=test,DC=com")); computerObject.CommitChanges(); } catch (InvalidOperationException inOp) { //log } catch (COMException comEx) { //log } //joinPath.Close(); finally { computerObject.Close

Spring Boot LDAP Authentication: Always get bad credentials

自古美人都是妖i 提交于 2020-01-17 06:21:49
问题 I'm trying to authenticate with a Spring Boot application against an Active Directory server in my local network, but I don't know what could I be doing wrong. When I access localhost I am redirected to the login page: Whenever I write any real user credentials, I'm redirected to the same page with an error message: If I send a random word as user and password I get the same login error screen, but additionaly this message is shown from Eclipse console: 2016-02-04 18:54:47.591 INFO 10092 ---

Active Directory Using Form Auth and Windows Auth

流过昼夜 提交于 2020-01-17 04:41:11
问题 I have an ASP.Net Application. The requirement is to implement Form Authentication using ADFS. If the user is accessing the WebSite from within the Domain(the same Domain as the Active Directoris), then the Form Authentication should be performed. i.e. Using the User's Windows logged in email Id, we should check if the user exists in the Active Directory or not. If the user exists, then the Website is made accessible to the user. If the user is not found on the basis of his/her email id, then

Script works as VBS but not HTML

本小妞迷上赌 提交于 2020-01-17 04:38:13
问题 I have a script that shows a filtered list of what groups a particular AD user is a member of. It works perfectly fine as a VBS file, but when imported into either an HTA or HTML file it gives me a "The search filter cannot be recognized" error message when running the "objRecordSet.MoveFirst" line below. Dim User Dim DIA Dim GroupList DIA = "No" User = "UserNic" Const ADS_SCOPE_SUBTREE = 2 Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D Set objConnection = CreateObject("ADODB.Connection") Set

New-Aduser : The object name has bad syntax

本小妞迷上赌 提交于 2020-01-17 04:22:22
问题 I have a script which i use to create bulk users from a csv file which works fine. Import-Csv e:\temp\newemps.csv | %{ $ou = $_.ou $firstname = $_.first $lastName = $_.last $accountName = $("{0}{1}" -f $firstname.Substring(0,1),$lastName).ToLower() $description = $_.desc $password = "Welcome1" $name = "$firstName $lastName" New-AdUser -SamAccountName $accountName -GivenName $firstName -UserPrincipalName "$accountName@ba.net" -Surname $lastName -DisplayName $name -Name $name -AccountPassword

How to reset password in AD, getting an LDP OperationNotSupported error

为君一笑 提交于 2020-01-17 01:14:40
问题 We are able to create accounts in the active directory. But for some reason we are unable to login with them. The way our system works is a user applies for an account, an admin approves it and the user is sent a temporary password to login with. We think it may have to do with the permissions of the user but are not quite sure. Our code is extensive but here is some of our code and console log: javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000052D: SvcErr: DSID

Error while attempting to add a user to Active Directory

╄→гoц情女王★ 提交于 2020-01-16 19:48:19
问题 I'm now at a loss; I've tried this script several different ways but keep getting an error that says There is no such object on the server at character 20,2 . This line reads Set objOU = GetObject("LDAP://ou=users,dc=asp,dc=rippe,dc=com") I get a different error when I change OU to CN next to users. The end result desired is to have all of the variables taken from an HTML form and then the script will run to create a new user on our domain. I haven't even got to the adding the user to groups

System.DirectoryServices.Protocol move user question

三世轮回 提交于 2020-01-16 19:14:46
问题 I want to move a user from one OU to a Different OU, and also to update a few attributes using System.DirectoryServices.Protocol, but I'm having a very hard time finding any code samples for anything except searching. Can anyone please post some code samples and or links to code samples/tutorials for these two operation in S.DS.P? Thanks, Cal- 回答1: You can have a look to the article called Introduction to System.DirectoryServices.Protocols inside you'll find a shortcut to download MS_Sample

WSO2 (IdM) cannot add user in Active Directory as primary user store

大兔子大兔子 提交于 2020-01-16 14:57:05
问题 Environment: wso2 5.3.0 installed on Windows 7 sp1 jdk_1.8.0_151 with external primary user store on AD (Windows server 2016 Active Directory) Action: wso2 starts normally wsoadmin user is available in AD wso2 binds via ldaps to AD logging into the wso2 management menue on win 7 client as administrator ok all existing AD users show up in the wso2 users list view (only those with an email address) If I want to add a new user "wsotest" an error is thrown: ERROR {org.wso2.carbon.user.mgt.ui