Hi,
i use ldaptor to implement an ldap server for my project OTPme.
You can find the way its implemented in this file: https://github.com/the2nd/otpme/blob/main/otpme/lib/ldap/server.py
The actual line where i parse my ldif entries is: https://github.com/the2nd/otpme/blob/63e09b30af48883e1301109c7cc4c01480a4dab9/otpme/lib/ldap/server.py#L305
The "problem" is, that the resulting ldif is sorted. Especially the "mail" attributes are sorted and this is a problem when using it with the groupware sogo (https://www.sogo.nu/), because it uses the first "mail" attribute of a user as the "main E-Mail address".
So my question is, is it possible to keep the actual sorting of the ldif data when using it with ldaptor?
Thanks for any reply.
the2nd
Hi,
i use ldaptor to implement an ldap server for my project OTPme.
You can find the way its implemented in this file: https://github.com/the2nd/otpme/blob/main/otpme/lib/ldap/server.py
The actual line where i parse my ldif entries is: https://github.com/the2nd/otpme/blob/63e09b30af48883e1301109c7cc4c01480a4dab9/otpme/lib/ldap/server.py#L305
The "problem" is, that the resulting ldif is sorted. Especially the "mail" attributes are sorted and this is a problem when using it with the groupware sogo (https://www.sogo.nu/), because it uses the first "mail" attribute of a user as the "main E-Mail address".
So my question is, is it possible to keep the actual sorting of the ldif data when using it with ldaptor?
Thanks for any reply.
the2nd