lists.arthurdejong.org
RSS feed

Incorrect service port handling in nss/services.c

[Date Prev][Date Next] [Thread Prev][Thread Next]

Incorrect service port handling in nss/services.c




Testing on Linux x86_64, one service entry is defined as:

dn: cn=test_service1,ou=Services,dc=example,dc=com
objectClass: top
objectClass: ipService
cn: test_service1
ipServicePort: 10001 <-- service port defined
description: Symas SUUM services
ipServiceProtocol: tcp

The service port returned from nss-pam-ldapd/nss/services.c, however, becomes 4391.

# ./testgetservbyname debug
servent.s_name: test_service1
servent.s_port: 4391 <-- wrong service port returned.
servent.s_proto: tcp
./testgetservbyname: failed

I have attached a fix, #ifdef'ed FIX_SERVICE_PORT.  Please review.

Thanks,

Ted C. Cheng
tedcheng@symas.com

Attachment: nss_services.tar.gz
Description: GNU Zip compressed data

--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users