#319 Failure you parse URI if ldap_uri contains spaces between uris and commas - ldap be crashes
Closed: Fixed None Opened 14 years ago by jgalipea.

Description[[BR]]
When configuring list of LDAP uri's for LDAP BE fail over, the ldap be fails to parse the URI and it crashes.

Log Messages[[BR]]

[sssd[be[LDAP]]] [sdap_service_init] (0): Failed to parse ldap URI ()!
[sssd[be[LDAP]]] [load_backend_module] (0): Error (22) in module (ldap) initialization (sssm_ldap_init)!
[sssd[be[LDAP]]] [be_process_init] (0): fatal error initializing data providers
[sssd[be[LDAP]]] [main] (0): Could not initialize backend [22]
[sssd[be[LDAP]]] [sdap_service_init] (0): Failed to parse ldap URI ()!
[sssd[be[LDAP]]] [load_backend_module] (0): Error (22) in module (ldap) initialization (sssm_ldap_init)!
[sssd[be[LDAP]]] [be_process_init] (0): fatal error initializing data providers
[sssd[be[LDAP]]] [main] (0): Could not initialize backend [22]
[sssd[be[LDAP]]] [sdap_service_init] (0): Failed to parse ldap URI ()!
[sssd[be[LDAP]]] [load_backend_module] (0): Error (22) in module (ldap) initialization (sssm_ldap_init)!
[sssd[be[LDAP]]] [be_process_init] (0): fatal error initializing data providers
[sssd[be[LDAP]]] [main] (0): Could not initialize backend [22]
[sssd[be[LDAP]]] [sdap_service_init] (0): Failed to parse ldap URI ()!
[sssd[be[LDAP]]] [load_backend_module] (0): Error (22) in module (ldap) initialization (sssm_ldap_init)!
[sssd[be[LDAP]]] [be_process_init] (0): fatal error initializing data providers
[sssd[be[LDAP]]] [main] (0): Could not initialize backend [22]
[sssd[be[LDAP]]] [sdap_service_init] (0): Failed to parse ldap URI ()!
[sssd[be[LDAP]]] [load_backend_module] (0): Error (22) in module (ldap) initialization (sssm_ldap_init)!
[sssd[be[LDAP]]] [be_process_init] (0): fatal error initializing data providers
[sssd[be[LDAP]]] [main] (0): Could not initialize backend [22]



[root@localhost log]# ps -ef | grep sssd
root     30346     1  0 15:56 ?        00:00:00 /usr/sbin/sssd -f -D
root     30366 30058  0 15:58 pts/2    00:00:00 vim /etc/sssd/sssd.conf
root     30368 10573  0 16:00 pts/0    00:00:00 grep sssd

Configuration Tested[[BR]]

[sssd]
config_file_version = 2
domains = LDAP
sbus_timeout = 30
services = nss, pam

[nss]
filter_groups = root
filter_users = root

[pam]

[domain/LDAP]
auth_provider = ldap
enumerate = FALSE
id_provider = ldap
ldap_group_search_base = ou=Groups,dc=example,dc=com
ldap_tls_reqcert = never
ldap_uri = ldap://jennyv4.bos.redhat.com:389 , ldap://jennyv4.bos.redhat.com:29778
ldap_user_search_base = ou=People,dc=example,dc=com
cache_credentials = FALSE

If you remove spaces as follows:[[BR]]

ldap_uri = ldap://jennyv4.bos.redhat.com:389,ldap://jennyv4.bos.redhat.com:29778

All is well.


Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.0

Fields changed

status: new => assigned

Fixed in 6730ad8

fixedin: => 1.0.0
resolution: => fixed
status: assigned => closed
tests: 0 => 1

Fields changed

rhbz: => 0

Metadata Update from @jgalipea:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.0

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1361

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata