Hi,

I'm not searching for a user. It's happen when I click on the Address Book. Here is a screenshot:




About the debug, I already have it enabled:

*root@ipb8:~# tail -21 /etc/sogo/sogo.conf


    GCSFolderDebugEnabled = YES;
    GCSFolderStoreDebugEnabled = YES;
    LDAPDebugEnabled = YES;
    MySQL4DebugEnabled = YES;
    NGImap4DisableIMAP4Pooling = YES;
    ImapDebugEnabled = YES;
    OCSFolderManagerSQLDebugEnabled = YES;
    PGDebugEnabled = YES;
    SOGoDebugRequests = YES;
    SOGoMailKeepDraftsAfterSend = YES;
    SOGoUIxDebugEnabled = YES;
    SoDebugObjectTraversal = YES;
    SoSecurityManagerDebugEnabled = YES;
    WODontZipResponse = YES;
    WODebugZipResponse = YES;


}

root@ipb8:~# *



I received LDAP debug messages when logging in with a user :

*May 22 15:32:34 sogod [105042]: <0x0x555692c05060[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://127.0.0.1:389 May 22 15:32:34 sogod [105042]: <0x0x555692b89090[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://127.0.0.1:389 2024-05-22 15:32:34.436 sogod[105042:105042] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=users,dc=demo222,dc=pt' filter '(|(uid=emaia)(mail=emaia))' for attrs 'dn' May 22 15:32:34 sogod [105042]: <0x0x555692b4e5e0[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://127.0.0.1:389 2024-05-22 15:32:34.439 sogod[105042:105042] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=users,dc=demo222,dc=pt' filter '(|(uid=emaia)(mail=emaia))' for attrs '*' May 22 15:34:06 sogod [105042]: <0x0x555692ce8a60[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://127.0.0.1:389
*



Testing LDAP with a query for the Address Book, I get:

*root@ipb8:~# ldapsearch -x -H ldap://127.0.0.1:389 -D "cn=reader,dc=demo222,dc=pt" -b "ou=Users,dc=demo222,dc=pt" -w PASS "cn" "uid" "mail"
# extended LDIF
#
# LDAPv3
# base <ou=Users,dc=demo222,dc=pt> with scope subtree
# filter: (objectclass=*)
# requesting: cn uid mail
#

# Users, demo222.pt
dn: ou=Users,dc=demo222,dc=pt

# emaia, Users, demo222.pt
dn: uid=emaia,ou=Users,dc=demo222,dc=pt
cn: Eduardo Maia
mail: em...@demo222.pt
uid: emaia

# dsantos, Users, demo222.pt
dn: uid=dsantos,ou=Users,dc=demo222,dc=pt
cn: Diana Santos
mail: dsan...@demo222.pt
uid: dsantos

# administrator, Users, demo222.pt
dn: uid=administrator,ou=Users,dc=demo222,dc=pt
cn: Administrator
mail: administra...@demo222.pt
uid: administrator

# search result
search: 2
result: 0 Success

# numResponses: 5
# numEntries: 4
root@ipb8:~# *





Best regards,
                        Eduardo



Às 14:57 de 22/05/24, qhivert (qhiv...@alinto.eu) escreveu:
Assinatura

Hello,
Could you tell me if you’re searching for a user in this address book, is there any result? Also, could you add LDAPDebugEnabled = YES; to your sogo.conf (and restart sogo)

Quentin

*From:*users-requ...@sogo.nu <users-requ...@sogo.nu> *On Behalf Of *Eduardo Maia
*Sent:* mercredi 22 mai 2024 12:27
*To:* users@sogo.nu
*Subject:* [SOGo] AddressBook remains empty - Sogo v5.10.0

Hi,

I configured an AddressBook based on my OpenLDAP users, but with the new Sogo version 5.10.0 on Debian BookWorm, it’s not working. The AddressBook remains empty.”

I tried with some nightly versions and a compiled version. The result was the same.

Note: The same configuration on Sogo 5.9.0 and Debian Buster works fine!

Configuration on my /etc/sogo/sogo.conf :

* SOGoUserSources =
                (
                    {
                        type = ldap;
                        CNFieldName = cn;
                        UIDFieldName = uid;
                        IDFieldName = uid; //first field of the DN for direct binds                         bindFields = (uid, mail); //array of fields to use for indirect binds
                        baseDN = "ou=Users,dc=demo222,dc=pt";
                        bindDN = "cn=reader,dc=demo222,dc=pt";
                        bindPassword = "385831e5962a9d6516971c8f6a08d65d";
                        canAuthenticate = YES;
                        displayName = "Users" ;
                        hostname = "ldap://127.0.0.1:389"; <ldap://127.0.0.1:389>;
                        id = "colaboradores";
                        isAddressBook = YES;
                        listRequiresDot = NO;
                        SOGoSearchMinimumWordLength = 3;
                    }*

*        );*

Extract from /var/log/sogo/sogo.log (with debug enabled):

*May 22 11:10:15 sogod [105042]: |SOGo| starting method 'POST' on uri '/SOGo/so/emaia/Contacts/colaboradores/view' May 22 11:10:15 sogod [105042]: |SOGo| traverse(acquire): emaia => Contacts => colaboradores => view
May 22 11:10:15 sogod [105042]: |SOGo|   do traverse name: 'emaia'
May 22 11:10:15 sogod [105042]: |SOGo|   do traverse name: 'Contacts'
May 22 11:10:15 sogod [105042]: |SOGo|   do traverse name: 'colaboradores'
2024-05-22 11:10:15.173 sogod[105042:105042] PG0x0x5556926d4390 SQL: SELECT c_path4 FROM sogo_folder_info WHERE c_path2 = 'emaia' AND c_folder_type = 'Contact' 2024-05-22 11:10:15.176 sogod[105042:105042] PG0x0x5556926d4390 SQL: SELECT c_path4 FROM sogo_folder_info WHERE c_path2 = 'emaia' AND c_folder_type = 'Contact'
May 22 11:10:15 sogod [105042]: |SOGo|   do traverse name: 'view'
May 22 11:10:15 sogod [105042]: |SOGo| set clientObject: <0x555692a31250[SOGoContactSourceFolder]: name=colaboradores container=0x555692a79d10/Contacts> May 22 11:10:15 sogod [105042]: |SOGo| request took 0.010682 seconds to execute May 22 11:10:15 sogod [105042]: <0x0x555692a57ff0[WOResponse]> Zipping of response disabled May 22 11:10:15 sogod [105042]: 10.200.140.53 "POST /SOGo/so/emaia/Contacts/colaboradores/view HTTP/1.1" 200 74/46 0.013 - - 0 - 12*

Anyone could help ?

Thanks in advance!

--

*Eduardo Maia*
/IPBrick IDI/

        

Image removed by sender. IPBRICK R&D <https://www.ipbrick.com/>

Av. da França, 821
4250-214 Porto
Portugal

        

TEL: +351 220 126 921
TLM: +351 933 568 871
FAX: +351 225 189 722
UCoIP: em...@ipbrick.com <mailto:em...@ipbrick.com>

www.ipbrick.com <https://www.ipbrick.com/>
www.youtube.com/ipbricksa <https://www.youtube.com/ipbricksa>

        

Image removed by sender. UCoIP <http://emaia.ipbrick.com/>Image removed by sender. Facebook <http://www.facebook.com/pages/IPBrick/263923950988/>Image removed by sender. Twitter <http://twitter.com/IPBrick/>Image removed by sender. Linked In <https://www.linkedin.com/company/ipbrick-international>Image removed by sender. Instagram <https://www.instagram.com/ipbricksa>

--
Assinatura
Eduardo Maia
/IPBrick IDI/   IPBRICK R&D <https://www.ipbrick.com/>
Av. da França, 821
4250-214 Porto
Portugal        TEL: +351 220 126 921
TLM: +351 933 568 871
FAX: +351 225 189 722
UCoIP: em...@ipbrick.com
www.ipbrick.com <https://www.ipbrick.com/>
www.youtube.com/ipbricksa <https://www.youtube.com/ipbricksa> UCoIP <http://emaia.ipbrick.com/> Facebook <http://www.facebook.com/pages/IPBrick/263923950988/> Twitter <http://twitter.com/IPBrick/> Linked In <https://www.linkedin.com/company/ipbrick-international> Instagram <https://www.instagram.com/ipbricksa>

Reply via email to