OpenLDAP

Can't get LDAP functions to load in PHP

孤街醉人 提交于 2019-12-08 01:30:33
问题 When attempting to use ldap_connect(), I get this error: Fatal error: Call to undefined function ldap_connect() I've recompiled php with the LDAP apache module enabled, and I've edited my php.ini file, too and uncommented: extension=php_ldap.dll I'm on Red Hat Linux, php 5.3.10, apache 2.2. Any ideas? Loaded Apache Modules: (contains *util_ldap*) core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter util

Java Tomcat LDAP authentication

╄→尐↘猪︶ㄣ 提交于 2019-12-07 17:10:23
问题 Since I'm running Java with Tomcat6 as servlet container I found it appropriate to use the Tomcat JNDIRealm feature so that LDAP users can log into my site without any additional efforts. The LDAP server I'm using is OpenLDAP on Ubuntu. On top of this I have the login page using form-based authentication over an https connection. I found two very good examples of authentication users via LDAP, here and here, that both achieve what I feel I almost achieved. Why almost achieved? When I attempt

Calling system commands from Perl

醉酒当歌 提交于 2019-12-07 11:14:31
问题 In an older version of our code, we called out from Perl to do an LDAP search as follows: # Pass the base DN in via the ldapsearch-specific environment variable # (rather than as the "-b" paramater) to avoid problems of shell # interpretation of special characters in the DN. $ENV{LDAP_BASEDN} = $ldn; $lcmd = "ldapsearch -x -T -1 -h $gLdapServer" . <snip> " > $lworkfile 2>&1"; system($lcmd); if (($? != 0) || (! -e "$lworkfile")) { # Handle the error } The code above would result in a

How to test ldap ppolicy enforcement

喜夏-厌秋 提交于 2019-12-07 06:15:27
I am using openldap 2.4. I have configured it with following configuration. include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/HFSchema.schema include /etc/ldap/schema/ppolicy.schema pidfile /var/run/slapd/slapd.pid modulepath /usr/lib/ldap moduleload back_hdb.la moduleload ppolicy.la database hdb suffix "dc=example,dc=com" rootdn "cn=admin,dc=example,dc=com" rootpw {SSHA}xzW0DfNFHahvm/C68ZR4YvbZGFQJjfz5 overlay ppolicy ppolicy_default "cn=DefaultPwdPolicy,ou

LDAP: Is the memberOf/IsMemberOf attribute reliable for determining group membership: SunONE/ActiveDirectory / OpenLDAP

荒凉一梦 提交于 2019-12-07 04:00:26
Context We're adding group membership filtering when importing members from an LDAP server into our application. (Previously we imported all members from a given ldap "base DN"; now administrators can restrict to certain groups, i.e. members "Sales" and "HR" in the base DN). Our application supports: SunONE Active Directory Also, we plan to support static groups only, not dynamic groups. How We Would Have Done It In the past, we would use two lookups to replicate members into our database for this new functionality. lookup all members in the baseDN lookup all groups (with members) where group

Connection issues after turning off embedded LDAP

你离开我真会死。 提交于 2019-12-06 16:41:39
When disabling embedded-LDAP in my Identity Server install, I receive the following startup errors: [2017-10-09 14:12:03,955] ERROR {org.wso2.carbon.user.core.ldap.LDAPConnectionContext} - Error obtaining connection. [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1] javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1] Caused by: org.wso2.carbon.user.core.UserStoreException: Cannot create connection to LDAP server. Error message Error

How to get DN and password with UnboundID

烂漫一生 提交于 2019-12-06 13:37:11
I need some help concerning UnboundID. I heard it was a great choice but I'm not really used to it. So I need to make a LDAP listener. On this listener, i should be able to catch bind request (from a ldap browser for example). I wonder how to get the DN and the password. Here is my code for the LDAP listener: public ResultCode CreateLdapServer () throws LDAPException { CannedResponseRequestHandler requestHandler = new CannedResponseRequestHandler(); LDAPListenerConfig config = new LDAPListenerConfig(4243, requestHandler); try { config.setListenAddress( InetAddress.getByName("localhost")); }

Can't get LDAP functions to load in PHP

一曲冷凌霜 提交于 2019-12-06 09:51:59
When attempting to use ldap_connect() , I get this error: Fatal error: Call to undefined function ldap_connect() I've recompiled php with the LDAP apache module enabled, and I've edited my php.ini file, too and uncommented: extension=php_ldap.dll I'm on Red Hat Linux, php 5.3.10, apache 2.2. Any ideas? Loaded Apache Modules: (contains *util_ldap*) core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter util_ldap mod_log_config mod_logio mod_env mod_expires mod_headers mod_setenvif mod_version mod_proxy mod

How to use LDAP Authentication with Grafana and Wamp for Single Sign On?

徘徊边缘 提交于 2019-12-06 06:16:18
I am trying to add single sign on for grafana using LDAP, I have come across Grafana documentation for LDAP but I did not understand. Can I get Single Sign On feature using LDAP? If yes, Can somebody give me a step by step procedure to follow to setup single sign on using ldap and grafana. Grafana Version : 5.2.1 OS: WINDOWS Update 1 I have been able to configure LDAP with grafana. Now I'm trying to integrate LDAP with wamp for SSO. In apache error log file I'm getting this error auth_ldap authenticate: user username authentication failed; URI /grafana/ [LDAP: ldap_simple_bind() failed]

Java Tomcat LDAP authentication

☆樱花仙子☆ 提交于 2019-12-06 03:50:49
Since I'm running Java with Tomcat6 as servlet container I found it appropriate to use the Tomcat JNDIRealm feature so that LDAP users can log into my site without any additional efforts. The LDAP server I'm using is OpenLDAP on Ubuntu . On top of this I have the login page using form-based authentication over an https connection . I found two very good examples of authentication users via LDAP, here and here , that both achieve what I feel I almost achieved. Why almost achieved? When I attempt to login with the wrong credentials I'm appropriately sent to the <form-error-page> , login-failed