active-directory

How to unit-test a NextPasswordChangeDate function against the Active Directory

佐手、 提交于 2020-01-16 07:29:13
问题 I am working on a project using the Active Directory, intensively. I set up a few unit tests for several things against the AD, some of which I achieve using mocked objects, some which I achieve through real calls against the AD. As one of the functions of my project, I have to retrieve a so called "user profile". This user profile consists mostly of simple attributes, like "cn", "company", "employeeid", etc. However, one property that I am trying to fill is not a simple one

remotely and programatically logoff an active domain user

六眼飞鱼酱① 提交于 2020-01-16 00:44:07
问题 I need to be able to logoff any user from his windows session from a program. I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in? The tool will run as admin so that's not a problem, being able to remote logoff without logging in is. Tool is in .NET, but any other way is welcome (JScript, command line tool to run from PInvoke, etc.) 回答1: Perhaps with Sysinternals' PsTools, particularly PsShutdown? 回答2: Finally found out this

MS Access permissions with Active Directory users

删除回忆录丶 提交于 2020-01-16 00:33:06
问题 Is it possible to set Access persmissions using Active Directory users? Edit : The overall objective is to allow some users to see certain tables and deny this permission for other users. I'm wondering if it can be done using active directory users. 回答1: Depends on what you mean by Access permissions. Access user level security do not interact with Active Directory in any way. ACC: Microsoft Access Security FAQ Available in Download Center It is suggested you reread this FAQ several times. I

OfficeJs SSO getAccessTokenAsync returns error code 3000,Access denied

≡放荡痞女 提交于 2020-01-15 12:22:53
问题 I have followed all steps but I had some changes due to my unique setup. I had unique setup where none of the services were hosted on azure so I used aws azure active directory integration. I used following tutorial to configure AWS Azure Active directory. I followed this tutorial to configure sso for my word addin After following tutorial I got this below error getAccessTokenAsync return result = { status: "failed", error: { code: 7000, message: "You don't have sufficient permissions for

OfficeJs SSO getAccessTokenAsync returns error code 3000,Access denied

╄→尐↘猪︶ㄣ 提交于 2020-01-15 12:21:28
问题 I have followed all steps but I had some changes due to my unique setup. I had unique setup where none of the services were hosted on azure so I used aws azure active directory integration. I used following tutorial to configure AWS Azure Active directory. I followed this tutorial to configure sso for my word addin After following tutorial I got this below error getAccessTokenAsync return result = { status: "failed", error: { code: 7000, message: "You don't have sufficient permissions for

Authenticating to Custom WCF Service in Sharepoint 2010

江枫思渺然 提交于 2020-01-15 08:29:42
问题 I've created a custom WCF service in SharePoint 2010 which I am trying to call via a JQuery Ajax request. My custom WCF service is modeled on the example given here: Link: http://blog.sharepointbits.com/2010/04/custom-wcf-services-in-sharepoint-2010_17.html The above method gave me a WCF service I could access from C# server-side code, and a custom InfoPath form, however, I was unable to get a response using JQuery Ajax. I read elsewhere on Stack Overflow to use

Authenticating to Custom WCF Service in Sharepoint 2010

雨燕双飞 提交于 2020-01-15 08:28:06
问题 I've created a custom WCF service in SharePoint 2010 which I am trying to call via a JQuery Ajax request. My custom WCF service is modeled on the example given here: Link: http://blog.sharepointbits.com/2010/04/custom-wcf-services-in-sharepoint-2010_17.html The above method gave me a WCF service I could access from C# server-side code, and a custom InfoPath form, however, I was unable to get a response using JQuery Ajax. I read elsewhere on Stack Overflow to use

Spring Security: how to map Active Directory users to application users?

谁说胖子不能爱 提交于 2020-01-15 07:26:09
问题 I'm integrating Active Directory authentication in an existing Spring web app. At the moment user details are stored in a DB table and I implemented a custom UserDetailsService to authenticate users. Following several tutorials I implemented Active Directory support via ActiveDirectoryLdapAuthenticationProvider in my application, and it basically works, but I need something more specific. Instead of mapping AD groups to application roles, I need to map AD users to existing users in my web app

Finding what Groups/Distribution lists a specific user belongs to in active directory

允我心安 提交于 2020-01-15 05:58:06
问题 Let's say I'm in OU=Groups,DC=contaco,DC=com,ct I can find all the groups in a sub OU, but the only way to find all of the groups user 'bobdole' belongs to is for me to look at each group and see if he is in the 'member' field. Unfortunately, when I look at user 'bobdole', I don't see a memberOf field that has all of these lists, hence I have to enumerate through each group\distribution list and see which he is a member of. Is there no more efficient way to do this? I'm in c# 回答1: This

Bulk import AD users from csv using powershell without user intervention

社会主义新天地 提交于 2020-01-15 05:47:28
问题 I'm trying to import users from a csv file using ADUser powershell cmdlet and here's the script Import-Module ActiveDirectory $csvcontent = Import-CSV -Path "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\import_create_ad_users_2a.csv" foreach ($user in $csvcontent) { $samAccountName = $user.GivenName.substring(0,1).ToLower()+$user.LastName.ToLower() $userPrincinpal = $samAccountName+"@mmc.local" New-ADUser -AccountPassword (ConvertTo-SecureString -AsPlainText $user.Password -force