active-directory

A positional parameter cannot be found that accepts arguement “xxx”

北城以北 提交于 2020-01-12 11:54:48
问题 I am trying to understand what this error actually means. So far a search of similar help requests for this error range from missing parameters, missing pipes, use of single or multi lines and also concatenation issues but none of the answers seem to give a definitive reason. So I assume the issue is code format (which makes it a lot harder to track down). This is my script which I am writing to rename active directory users per target OU from whatever format they are now into a firstname

Single Sign On with apache on windows 7 and mod_auth_sspi

不问归期 提交于 2020-01-12 09:56:39
问题 I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher. For admin connection to the AD server, I use a PHP scripted called adLDAP. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine. But I want my users to auto sign in if they are logged in to their

Single Sign On with apache on windows 7 and mod_auth_sspi

旧时模样 提交于 2020-01-12 09:56:24
问题 I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher. For admin connection to the AD server, I use a PHP scripted called adLDAP. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine. But I want my users to auto sign in if they are logged in to their

Increase limit from 1000?

亡梦爱人 提交于 2020-01-12 06:18:49
问题 When I do a search like so my $mesg = $ldap->search( base => "OU=test,DC=example,DC=com", scope => 'one', filter => '(objectClass=organizationalPerson)', attrs => ['distinguishedName', 'displayName', 'sAMAccountName', 'employeeID'], ); I only get 1000 entries, where I would expect ~20000. Is it possible to increase this limit in my Perl script, or does it have to be changed on the server? 回答1: The solution is to use paged search like so use Net::LDAP; use Net::LDAP::Control::Paged; use Net:

Increase limit from 1000?

自闭症网瘾萝莉.ら 提交于 2020-01-12 06:18:10
问题 When I do a search like so my $mesg = $ldap->search( base => "OU=test,DC=example,DC=com", scope => 'one', filter => '(objectClass=organizationalPerson)', attrs => ['distinguishedName', 'displayName', 'sAMAccountName', 'employeeID'], ); I only get 1000 entries, where I would expect ~20000. Is it possible to increase this limit in my Perl script, or does it have to be changed on the server? 回答1: The solution is to use paged search like so use Net::LDAP; use Net::LDAP::Control::Paged; use Net:

How can I get roles from AD with MVC Azure AD Authentication?

↘锁芯ラ 提交于 2020-01-12 05:33:06
问题 I setup and MVC 4 application and added authentication against our Azure AD server as outlined here: http://msdn.microsoft.com/en-us/library/windowsazure/dn151790.aspx Authentication works as expected. However, I'm not getting any roles back by default. There should be several AD groups created and I would like to use them to role restrict the application via the [Authorize] attribute in MVC. I can't really find a good place to even start figuring this out. Can anyone give me an outline or

Error with UserPrincipal.GetAuthorizationGroups() method

隐身守侯 提交于 2020-01-12 05:12:06
问题 I am having an issue using the GetAuthorizationGroups method of the UserPrincipal class in a web application. Using the following code, I am receiving "While trying to retrieve the authorization groups, an error (5) occurred" PrincipalContext context = new PrincipalContext(ContextType.Domain, null, "DC=MyCompany,DC=COM", "username", "password"); UserPrincipal p = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, "joe.blogs"); var groups = p.GetAuthorizationGroups(); I believe

c# winform active directory: acces to another form if login succes

一个人想着一个人 提交于 2020-01-11 13:33:34
问题 i want to create a control from a form where i have login textbox and password textbox, and login button. when i will enter the active directory account name and its password i want to go to another form. someone can help me with this please. in this code example i chose the account for login only. i want to chose it and type the password and go the destination form by exemple from form (login) to form (user interface). private void radiobtnAD_CheckedChanged(object sender, EventArgs e) { if

java is not executing system command

拈花ヽ惹草 提交于 2020-01-11 11:13:49
问题 In the following program am giving name as "don" so the command will search activedirectory with all the names starting with don (like donald etc). But the line2 variable becomes null after the assignment from reader object and it never goes into the loop. What am i doing wrong? FYI: the command works when i give it on the command line. try { Process p = Runtime.getRuntime().exec( "dsquery user -name " + name + "* -limit 200|dsget user -samid -display"); p.waitFor(); BufferedReader reader =

java is not executing system command

南笙酒味 提交于 2020-01-11 11:12:27
问题 In the following program am giving name as "don" so the command will search activedirectory with all the names starting with don (like donald etc). But the line2 variable becomes null after the assignment from reader object and it never goes into the loop. What am i doing wrong? FYI: the command works when i give it on the command line. try { Process p = Runtime.getRuntime().exec( "dsquery user -name " + name + "* -limit 200|dsget user -samid -display"); p.waitFor(); BufferedReader reader =