ldap

Java LDAP graceful disconnect

喜你入骨 提交于 2019-12-22 08:16:16
问题 Currently from java I am connecting to LDAP with the following code, very typical example: Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, url); env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, user); env.put(Context.SECURITY_CREDENTIALS, password); LdapContext ctx = null; try { ctx = new InitialLdapContext(env, null); return true;

Is there a way to link an SQL database to an LDAP server

别说谁变了你拦得住时间么 提交于 2019-12-22 08:08:42
问题 We have an SQL contacts database that links into all our project information with lots and bells and whistles. It has recently been suggested that we make the contacts part of this information available to our end users in their email clients - so we are looking at setting up an LDAP server Are there any out there that will allow us to map the information in the DB (probably a view I'd suspect) to an LDAP server? 回答1: OpenLDAP has support for a metadata driven SQL backend using back-sql. The

LDAP c++ API choice [closed]

牧云@^-^@ 提交于 2019-12-22 07:52:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to write my own LDAP client under Linux, specific to our local environment. Most probably I will use QT4 to provide a shiny frontend without much hassle. I found that there seems to be no standard C++ library for this. OpenLDAP provides a C API and there should also be a C++ API (experimental?)

JAAS additional LoginModules

放肆的年华 提交于 2019-12-22 05:03:12
问题 I'd like to know how to combine these two authentication steps : check the user/password in an LDAP add principals (roles) found in a DB to the subject. The LDAP user repository have no idea about application-specific roles and I don't want to manage the passwords in the application DB. So I need both. JAAS configuration file allows to have additional LoginModules : <name used by application to refer to this entry> { <LoginModule> <flag> <LoginModule options>; <optional additional

PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server

半腔热情 提交于 2019-12-22 04:08:36
问题 I've following problem with my php script: PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in .... ldap_connect() says "Success" but ldap_bind() fails, how to fix that issue? 回答1: Connect opens the session. Bind is what actually authenticates you. Thus you connected but did not login with valid credentials. 回答2: Had this error on RHEL7 ( CentOS7 ) due to SELinux restricting ports HTTPD can use. LDAP ports 389 and 636 are not on the default allow list, you can

Can't get deleted items from OpenLDAP Server using Content Synchronization Operation (syncrepl)

会有一股神秘感。 提交于 2019-12-22 04:01:52
问题 I set up my OpenLDAP server on a Ubuntu 19.04 VM and allowed replication (using this tutorial: https://help.ubuntu.com/lts/serverguide/openldap-server.html#openldap-server-replication). Everything for replication seems ok. I don't have set up a consumer server as my code will act as one, pulling modified elements regularly. The modified/added entries are correctly retrieved BUT I want to get deleted items and I can't seem to get it to work. As described by the RFC https://tools.ietf.org/html

ranger安装

╄→гoц情女王★ 提交于 2019-12-22 03:59:33
下载 $ wget https://github.com/apache/ranger/archive/release-ranger-2.0.0.tar.gz 解压缩 $ tar zxvf release-ranger-2.0.0.tar.gz -C /opt/module/ 编译 $ mvn clean compile package assembly:assembly install -DskipTests 结果 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for ranger 2.0.0: [INFO] [INFO] ranger ............................................. SUCCESS [ 4.100 s] [INFO] Jdbc SQL Connector ................................. SUCCESS [ 1.290 s] [INFO] Credential Support ................................. SUCCESS [ 1.137 s] [INFO] Audit Component ..

Error while trying to connect AD using LDAP connection

Deadly 提交于 2019-12-22 03:47:14
问题 Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain, domain) but i got the error saying: The LDAP server is unavailable. Any idea? 回答1: The questions is: do you specify our domain as "mydomain.com" (DNS format) or as "dc=mydomain,dc=com" (AD-style format) To my surprise, the Domain name must be in DNS format (e.g. "mydomain.com") in order for this to work (and NOT in the usual AD-style format of "dc=mydomain,dc=com"). 回答2: I had the

How to specify SSL/TLS version on Java LDAP connection?

久未见 提交于 2019-12-22 01:37:35
问题 Im working on an java LDAP-Client and I'm still missing some information or knowledge on how to do this properly. My Code looks like this: LdapContext ctx = null; Hashtable<String, String> env = new Hashtable <String, String>(); try{ env.clear(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "url"); env.put(Context.SECURITY_PRINCIPAL, "user"); env.put(Context.SECURITY_CREDENTIALS, "password"); env.put(Context.SECURITY_PROTOCOL,

Spring security, ssl ldap and no certificate

梦想的初衷 提交于 2019-12-21 20:59:24
问题 I use spring security to manage login. I've configured spring security to connect to a ldap server which is securized with ssl (ldaps). This server is a test server and has no valid certificate. When I try to test the login, spring security complains that the certificate cannot be verified (of course!): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target My