FAQ Database Discussion Community


Python-Ldap lib. Import LDIF

python,openldap,python-ldap
Is it possible to import LDIF like that dn: cn=vpupkin,cn=people,ou=company,dc=domain,dc=com c: UA cn: vpupkin employeetype: Indoor Front-end developer gidnumber: 500 givenname: Vasya homedirectory: /home/vpupkin host: example.com l: Kyiv loginshell: /bin/bash mail: [email protected] o: Microsoft objectclass: inetOrgPerson objectclass: posixAccount objectclass: top objectclass: shadowAccount objectclass: ldapPublicKey objectclass: extensibleObject labeleduri: skype://test sn: Pupkin...

How to set relax controls on a LDAP context

java,ldap,jndi,openldap
I would like to set the relax control (as defined in https://tools.ietf.org/html/draft-zeilenga-ldap-relax-03) on a javax.naming.ldap.LdapContext, but I don't know how to construct the control correctly: LdapContext context = new InitialLdapContext(...); Control[] controls = { new BasicControl(/* What to put here? */) }; context.setRequestControls(controls); ...

Authenticating Moodle using phpldapadmin server

moodle,openldap,phpldapadmin
I'm using Moodle 2.7,i have enabled LDAP authentication for users.I have a phpldapadmin(openldap) server which with DNS as cn=admin,dc=demoldap,dc=org and i have created many users accounts in the DN. when i tried to login with those user account in moodle im getting the following error "The user account "user1" is...

Active Directory search filter example

search,active-directory,ldap,openldap
I can't find the meaning, the difference between these two examples for search filter (&(objectClass=user)(sn=*)(bysUserName=*)(|(bysUserName={0})(cn={0}))) (&(|(bysUserName={0})(cn={0}))(objectClass=User)) Can anyone help me figure out these two filters? Thanks...

insert utf-8 data in openldap with c api

c++,utf-8,openldap
What is the correct method to insert utf-8 data in an openldap database? I have data in a std::wstring which utf-8 encoded with: std::wstring converted = boost::locale::conv::to_utf<wchar_t>(line, "Latin1"); When the string needs to added tot an ldapMod structure, i use this fuction: std::string str8(const std::wstring& s) { return boost::locale::conv::utf_to_utf<char>(s); }...

How to ignore Liferay user removed from LDAP errors?

ldap,log4j,liferay,liferay-6,openldap
I have a Liferay 6.1 instance that is connected to LDAP. New users get imported nicely, but when I remove a user from the LDAP directory, Liferay starts throwing exceptions when it tries to sync users from LDAP. These seem to be safe to ignore, but they produce several megabytes...

How can we remove on server from Directory in OpenLdap?

security,directory,openldap
We installed a OpenLDAP 2.4.31 solution on debian; and several machines in the site are using it. Though the local authentication is not disabled on the machines. One of the machines has some problems; and its developers asked us to disable central authentication for it. Due to policy, we are...

LDAP authentication fails on ripple and actual device but not on browser

ionic,openldap,ripple
I'm trying to get an authorization token for an Ionic App from a LDAP service in a remote server. I can get the auth token when I run the Ionic App in the browser with the command ionic serve and when I use Postman, BUT it takes lot of time...

Add user to LDAP using JAVA. Naming.InvalidNameException: Invalid Name

java,exception,ldap,openldap
I am practicing in Java, adding a user to LDAP(v3, running on my Virtual machine). Userdetails and attributes are obtained from postgres database running locally. This is my code (may not be a good approach): public class LDAPConnector { static final String DOMAIN_URL = "ldaps://10.10.10.180:636/"; static final String ADMIN_NAME =...

How to do an initial setup of slapd OLC with ldapmodify

linux,openldap
I've run into sort of a deadlock setting up an LDAP server on CentOS. I use the on-line configuration files under /etc/openldap/slapd.d The documentation tells you not to modify those files by hand, and the files are checksummed. But I cannot use ldapmodify, because I can't log in (simple bind)...

ldapadd gives “no global superior knowledge” on default config

ldap,docker,openldap
Background: I'm installing a Prosody XMPP server and Kaiwa webclient on a DigitalOcean droplet. Kaiwa has a one-click deploy-to-DO-droplet tool using Docker that I tried first, but it didn't work - probably because I'm using the 512MB minimum DO VPS and it ran out of memory with half of the...

Schema addition in slapd.d : unknown directive

ldap,schema,openldap
I am trying to set up an openLDAP LDAP on Ubuntu 14.04, and I would like to add a custom schema to the dynamic ldap conf. As I understood, I have to add dynamically a ldif entry to my ldap, under the DN: cn=myCustomSchema,cn=schema,cn=config. What I wanted to do was:...

Active directory and linux nslcd binding without extending the AD schema

linux,windows,active-directory,windows-server-2012,openldap
I have a requirement of binding linux clients to Windows Server 2012 Active Directory. I have a test environment where I successfully did that both with samba-winbind-kerberos, and with nslcd, using a user to authenticate. However, when using samba-winbind-kerberos, I was able to achieve this without extending the AD schema...

How to use “ismemberof” in a ldap search

ldap,openldap,ldapjs
I am using node.js, passport-ldapauth, ldapjs. Trying to lookup a user's groups using the "ismemberof" ldap method. This works from the command line: # ldapsearch -H ldaps://ds-dev-nonsso.nam.nsroot.net:636 -D uid=emt,ou=funcids,ou=applications,o=company,c=us -w password -b ou=internal,o=company,c=us uid=sl15062 ismemberof # extended LDIF # # LDAPv3 # base <ou=internal,o=company,c=us> with scope subtree # filter: uid=sl15062...

PrincipalContext - I Can't connect to a local openldap server

c#,openldap,principalcontext
I have installed an openldap for windows server and I use LDAPAdmin to connect to it by its default values : Server=ldap://localhost:389 Base:dc=maxcrc,dc=com UserName:cn=Manager,dc=maxcrc,dc=com Password:secret Now I want to use PrincipalContext to add users to my ou=People The problem is I can't even connect to the server using PrincipalContext. I...

Search Inside LDAP Server

ldap,openldap
I was wondering if someone know, when i search an entity over the Ldap server, would I get also it's sub folders and the data inside. for example I have the following: *dn:EPC-SubscriberGroupId=AllInOne, EPC-SubscriberGroupsName=EPC-SubscriberGroups, applicationName=EPC-EpcNode, nodeName=jambala changetype:add objectClass: EPC-SubscriberGroup EPC-SubscriberGroupDescription:Voice and Data flat rate EPC-SubscribedServices:PeerToPeer EPC-SubscribedServices:Skype EPC-SubscribedServices:Chat dn:EPC-Name=EPC-SubscriberQualification,...

Why LDAP authentication routine typically use two binds?

java,spring,ldap,openldap,spring-ldap
I am using Spring LDAP and I see everyone using two binds.The first bind as a service account and the second bind as the user with the password given. But I see that user validation against the password in ldap can be performed even without the first bind. Can anyone...

Openldap : overlay accesslog not found

overlay,openldap,access-log
I am trying to configure accesslog. I have changed the slapd.conf file and trying to test using slaptest but i am getting error while executing slaptest -f /etc/openldap/slapd.conf. slapd.conf configuration: # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema...