How do I clone an OpenLDAP database

The problem with SourceRebels’ answer is that slapcat(8) does not guarantee that the data is ordered for ldapadd(1)/ldapmodify(1). From man slapcat (from OpenLDAP 2.3) : The LDIF generated by this tool is suitable for use with slapadd(8). As the entries are in database order, not superior first order, they cannot be loaded with ldapadd(1) without … Read more

Querying Windows Active Directory server using ldapsearch from command line

The short answer is “yes”. A sample ldapsearch command to query an Active Directory server is: ldapsearch \ -x -h ldapserver.mydomain.example \ -D “mywindowsuser@mydomain.example” \ -W \ -b “cn=users,dc=mydomain,dc=com” \ -s sub “(cn=*)” cn mail sn This would connect to an AD server at hostname ldapserver.mydomain.example as user mywindowsuser@domain.example, prompt for the password on the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)