ldap

Apache on Windows cant find php extensions

那年仲夏 提交于 2019-12-24 07:58:57
问题 I have Apache 2.4 and php installed on Windows Server 2012. Im trying to load the php_ldap.dll extension. Here's what Ive done: In php.ini I set the following: extension_dir = "C:\php\ext" extension=php_ldap.dll Then, I made sure the dll was available at that path, yep, it's there: phpinfo shows that I am editing the correct php.ini and the extension_dir is updated. However, when I start Apache, php_ldap.dll is not loaded. The Apache logs show this warning: PHP Warning: PHP Startup: Unable to

What does sub error code 568 mean for Ldap Error 49 with Active Directory

旧城冷巷雨未停 提交于 2019-12-24 07:45:44
问题 I am writing some Java code that authenticates to Active Directory using SASL GSSAPI. Mostly this code is working fine but for one user I am getting the response: javax.naming.AuthenticationException: [LDAP: error code 49 - 8 0090304: LdapErr: DSID-0C0904D1, comment: AcceptSecurityContext error, data 568, v1772 ] I know that 49 means this is an authentication failure, and that the relevant sub code is 568, but I am only aware of the following meanings for that data: 525 - user not found 52e -

PHP LDAP Login Issue

瘦欲@ 提交于 2019-12-24 07:34:39
问题 I am having a little trouble with my PHP LDAP login. My first bind is successful, but my second bind is not even if the credentials are correct. I tried using the credentials I use to the second bind in the first one to make sure it worked, and sure enough it can bind it at the first one. Why am I not being able to bind the second time? <?php // Define $myusername and $mypassword $username=$_POST['username']; $password=$_POST['password']; // using ldap bind $ldaprdn = 'uid=MYUID,ou=special,ou

PHP LDAP Login Issue

别来无恙 提交于 2019-12-24 07:32:07
问题 I am having a little trouble with my PHP LDAP login. My first bind is successful, but my second bind is not even if the credentials are correct. I tried using the credentials I use to the second bind in the first one to make sure it worked, and sure enough it can bind it at the first one. Why am I not being able to bind the second time? <?php // Define $myusername and $mypassword $username=$_POST['username']; $password=$_POST['password']; // using ldap bind $ldaprdn = 'uid=MYUID,ou=special,ou

Net::LDAPS throws unknown error during SSL connect

自闭症网瘾萝莉.ら 提交于 2019-12-24 06:47:11
问题 I am trying to connect to an LDAP server using the Net::LDAPS module. I am passing the right username, password and capath to it. The same code with all the modules in the same version works on one of my other machines. But on this particular machine I see this error. The sample code I am working with : my $ad_host = 'XYZ'; my $ad_port = 636; my $ad_user = 'ABC'; my $ad_pass = '****'; my $ca_path = '<path to ca cert>'; my $ldap = Net::LDAPS->new( $ad_host, port => $ad_port, verify => 'require

Php LDAP_OPT_DEBUG_LEVEL, 7 not tracing

霸气de小男生 提交于 2019-12-24 05:27:20
问题 I'm trying to get ldap_bind to trace out what its doing. I have the following ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); putenv('LDAPTLS_REQCERT=never'); error_reporting(E_ALL); ini_set('display_errors', 1); $ds = ldap_connect($server); $r = ldap_bind($ds, $admin, $passwd); I removed some code setting up variables. However I want to see the trace statements to help trouble shoot another issue. 回答1: You need to print out the errors using ldap_error($ds) after setting the option ldap_set

Get Current Windows User VB.net

谁都会走 提交于 2019-12-24 05:11:34
问题 I have tried multiple ways of grabbing the username of a current logged on user in vb.net/asp.net. I am running it on IIS 6 and understand that it will return NETWORK SERVICE for the username. I need to grab the username of the actual windows box log on. I have tried the following code: Returns NT AUTHORITY\NETWORK SERVICE Dim User = System.Security.Principal.WindowsIdentity.GetCurrent.User Dim UserName = User.Translate(GetType(System.Security.Principal.NTAccount)).Value Any help will be

Get Current Windows User VB.net

戏子无情 提交于 2019-12-24 05:11:13
问题 I have tried multiple ways of grabbing the username of a current logged on user in vb.net/asp.net. I am running it on IIS 6 and understand that it will return NETWORK SERVICE for the username. I need to grab the username of the actual windows box log on. I have tried the following code: Returns NT AUTHORITY\NETWORK SERVICE Dim User = System.Security.Principal.WindowsIdentity.GetCurrent.User Dim UserName = User.Translate(GetType(System.Security.Principal.NTAccount)).Value Any help will be

Selecting the AD ntSecurityDescriptor Attribute as a Non-Admin

北城余情 提交于 2019-12-24 02:06:34
问题 I'm working on a SDDL/Security Descriptor parser for Active Directory ACLs/ACEs. I'm nearly complete, everything works fine when I connect to LDAP using an administrative account. However, when I try to query the ntSecurityDescriptor as a non-administrative account it returns no values. The user account itself has rights to read the attribute. When I started to investigate this I ran across the following LDAP server control: https://msdn.microsoft.com/en-us/library/cc223323.aspx The LDAP

Oauth service for LDAP authentication

99封情书 提交于 2019-12-24 01:58:18
问题 We have a scenario where we have to authenticate the user with LDAP server Flow 1: client --> application server --> LDAP server In above flow the client enters LDAP credentials which comes to application server and then using python-ldap we can authenticate the user, straight forward. Since the user LDAP credentials comes to application server an organisation may not be willing for such flow for obvious reasons. Flow 2: client --> oauth2 --> LDAP server Oauth scenario suites best here, since