ldap

LDAP and PHP connection failure

泄露秘密 提交于 2019-12-18 03:09:15
问题 I am trying to connect to a secure LDAP server (using LDAPs) via PHP, but I am having problems with it. I get the following error Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in /var/www/test.php on line 16 I works when I try to connect without LDAPs, but it is required that I use LDAPs because I am going to be dealing with sensitive information. I am using the following code <?php // basic sequence with LDAP is connect, bind, search,

LDAP autofs挂载 swap交换空间

ぃ、小莉子 提交于 2019-12-18 03:00:45
配置Linux主机的网络参数 1.vim /etc/hostname #修改配置文件 2.hostnamectl set-hostname 主机名 #永久修改主机名 3.nmcli #命令行配置网络参数 4.nmtui #以图形化形式修改网络参数 5.nm-connection-editor 为Linux主机安装软件包,三步搞定yum源 1.删掉不能用的软件源装置 [ root@server0 ~ ] # rm -rf /etc/yum.repos.d/*.repo 2.添加能用的软件源装置 [ root@server0 ~ ] # yum-config-manager --add http://classroom.example.com/content/rhel7.0/x86_64/dvd/ 3.允许安装未知来源的软件 [ root@server0 ~ ] # vim /etc/yum.conf gpgcheck = 0 4.检查是否有该Yum源 [ root@server0 ~ ] # yum repolist LDAP 是轻量级的目录访问协议,用来集中提供用户名.密码.域名.通讯录.电子邮件信息等 例:假设有sr1-sr20共二十台主机都提供用户账号zhangsan,将他们的用户以及密码信息存放在一台服务器上

Can't verify CA certificate unless CApath or CAfile used

别等时光非礼了梦想. 提交于 2019-12-18 02:55:49
问题 Im having trouble with having OpenSSL connect to a server because of trust issues. I placed the CA certificate on /etc/ssl/certs/ and have run sudo c_rehash and can see that the correct file has been made. I can see that CA certificate is in the ca-certificates.crt. However if I run: openssl s_client -connect servername.domain.com:636 The command fails with Verify return code: 21 (unable to verify the first certificate) If I do: openssl s_client -connect servername.domain.com:636 -CApath /etc

Enumerate all users in LDAP with PHP

元气小坏坏 提交于 2019-12-18 02:42:20
问题 I'd like to create a php script that runs as a daily cron. What I'd like to do is enumerate through all users within an Active Directory, extract certain fields from each entry, and use this information to update fields within a MySQL database. Basically what I want to to do is sync up certain user information between Active Directory and a MySQL table. The problem I have is that the sizelimit on the Active Directory server is often set at 1000 entries per search result. I had hoped that the

Authenticating user using LDAP from PHP

时光毁灭记忆、已成空白 提交于 2019-12-17 23:03:06
问题 My project is to make a module enrollment system for our university. So I contacted the IT people in my university for details to authenticate the students into the system. We are developing the system using the existing university login. They gave me some LDAP information, I don't know the usage of that. I'm using PHP,Mysql on an Apacha server. How can I authenticate a user logging into my system, given his userid and password with the LDAP information. Given below is the LDAP information(i

Unable to enable PHP LDAP even though I have edited php.ini and php_ldap.dll is in the right place?

a 夏天 提交于 2019-12-17 22:34:12
问题 I've been working with a WAMP install for quite a while now with LDAP enabled and everything is going smoothly. Now though I have to set up another machine and for some reason I can't enable LDAP. I checked the output of phpinfo() and the LDAP section isn't there. I edited php.ini to uncomment the line: extension = php_ldap.dll I also checked the filepath being searched for extensions and the file php_ldap.dll is in the right place. I'm positive I'm editing the right php.ini file since I

Spring Boot with Session/Redis Serialization Error with Bad Active Directory Ldap Credentials

爱⌒轻易说出口 提交于 2019-12-17 21:30:58
问题 Hi I am new to Spring and Java, I am trying to implement a Gateway authentication server as described in this tutorial https://spring.io/guides/tutorials/spring-security-and-angular-js/ I got everything working and then tried to implement the authentication against our company Ldap server. It works if I use a valid username and password. When I use invalid credentials the application errors. I am not at work so I don't have the exact error, but it is returning an ldap error (com.sun.jndi.ldap

Tomcat 8 - LDAP: NameNotFoundException error code 32, remaining name empty string

孤街醉人 提交于 2019-12-17 20:34:51
问题 Trying to migrate an application from WebLogic 12.2.1 to Tomcat 8.5.4 , what under Weblogic was an entry as Foreign JNDI Providers for an LDAP connection has been migrated to a new Resource under Tomcat. Following this advice on Stack Overflow, a custom LdapContextFactory has been packaged as a new jar file under Tomcat lib folder. In the Tomcat server.xml file the following GlobalNamingResources/Resource has been configured: <Resource name="ldapConnection" auth="Container" type="javax.naming

case insensitive LDAP searches

北城以北 提交于 2019-12-17 20:09:45
问题 What't the syntax for performing a case-insensitive match on a 'uid' attribute? If attribute definition matters then how would that be changed? In particular I am using ApacheDS for my LDAP store. 回答1: (uid=miXedCaseUSer) will match a uid of mixedcaseuser. Accoriding to the OID Description for 0.9.2342.19200300.100.1.1 - Userid userId is defined to have EQUALITY MATCHING RULE caseIgnoreMatch Which means it is one of the attribute definitions that employ case insensitive matching by default.

Query active directory to get a user's roles in .NET

旧巷老猫 提交于 2019-12-17 19:25:59
问题 I have been using Linq to Active Directory a bit but I am finding it difficult to get a list of all roles of which the user is a member. I can retrieve a list of their immediate groups but it isn't recursive. The reason I am trying to query AD directory is to work around the built-in Role Manager AspNetWindowsTokenRoleProvider which won't let you call Roles.GetRolesForUser(username) unless the username matches the current Windows Identity. 回答1: Have you taken a look at this? 回答2: If you're on