Re: Replacement for ldap_sort_entries

2015-06-24 Thread Côme BERNIGAUD
On 2015-06-24 16:19, Michael Ströder wrote: Côme BERNIGAUD wrote: I’m trying to get rid of the -DLDAP_DEPRECATED=1 option when building the php-ldap module. For other functions it went fine but the php function ldap_sort is using ldap_sort_entries which is deprecated with no replacement. As I

Replacement for ldap_sort_entries

2015-06-24 Thread Côme BERNIGAUD
Hello, I’m trying to get rid of the -DLDAP_DEPRECATED=1 option when building the php-ldap module. For other functions it went fine but the php function ldap_sort is using ldap_sort_entries which is deprecated with no replacement. As I can’t remove ldap_sort from PHP API, I need to find a way

Re: Replacement for ldap_sort_entries

2015-06-24 Thread Côme BERNIGAUD
On 2015-06-24 17:26, Pierangelo Masarati wrote: The logic of that sorting is broken. Sorting by DN (or by value) requires the knowledge of the syntax and matching rule(s) of the corresponding attributes. First of all, the client is not supposed to know much about it. Second, a wise

Re: EXOP patches for PHP LDAP module

2015-04-15 Thread Côme BERNIGAUD
On 2015-04-13 11:45, Emmanuel Dreyfus wrote: Hello For whoever is interested, I updated Pierangelo Masarati's patch to support EXOP in PHP LDAP module. Patches for PHP 5.4, 5.5 and 5.6 can be found here: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/databases/php-ldap/files/ Previous patch for

Re: EXOP patches for PHP LDAP module

2015-04-15 Thread Côme BERNIGAUD
On 2015-04-15 17:19, Emmanuel Dreyfus wrote: On Wed, Apr 15, 2015 at 04:43:06PM +0200, Côme BERNIGAUD wrote: After applying your patch on PHP 5.6 I get these errors compiling: Which version? I tried on 5.6.7 On PHP-5.6 branch of php git. I just tried on PHP-5.6.7 branch and got the same

Bug with MDB backend and onelevel scope

2015-04-09 Thread Côme BERNIGAUD
Hello, I got this weird behavior: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782212 Summary: # LDAPv3 # base ou=wheezy,ou=debian,ou=fai,ou=configs,ou=systems,dc=mcmic,dc=test with scope oneLevel # filter: objectClass=FAIbranch # requesting: ALL # # wheezy, debian, fai, configs, systems,

Re: is there hardware inventory schema?

2014-11-04 Thread Côme BERNIGAUD
On 2014-11-03 11:30, Zeus Panchenko wrote: greetings, please advise, is there schema or what will it be correct to use, for hardware inventory data to be stored in LDAP (except custom schema)? FusionDirectory have a plugin for FusionInventory to store their inventories data. If this is the

Modifying schemas

2014-10-22 Thread Côme BERNIGAUD
Hello, If I do sudo ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config cn=* cn I can see in the resulsting list: # {18}applications-fd, schema, config dn: cn={18}applications-fd,cn=schema,cn=config cn: {18}applications-fd But if I use an ldif trying to modify this I

Re: Modifying schemas

2014-10-22 Thread Côme BERNIGAUD
On 2014-10-22 10:27, Michael Ströder wrote: Côme BERNIGAUD wrote: But if I use an ldif trying to modify this I get: modifying entry cn={18}applications-fd,cn=schema,cn=config ldap_modify: No such object (32) Which OpenLDAP version? Ciao, Michael. 2.4.31-1+nmu2 https

Re: Proper way to configure custom schemas

2014-02-10 Thread Côme BERNIGAUD
This is exactly the problem I was having, openldap is returning an error and still doing the modification, looks a lot like a bug. See the log attached. (This on debian wheezy with sldapd 2.4.31-1+nmu2) Côme On 2014-02-07 15:55, Nerijus Kislauskas wrote: Hi, What is a proper set of actions

LDIF and cn=config

2014-01-21 Thread Côme BERNIGAUD
Hello, I'm trying to figure out what's happening with my LDAP. I insert an LDIF modifying a schema in cn=schema,cn=config, OpenLDAP gives me an error No such object, but it still does the modification. How can I do to avoid having this error while the modification is working? I can't just