Bug#794686: nslcd start script does not report starting failure

2016-02-13 Thread Arthur de Jong
On Thu, 2016-02-11 at 14:13 +0300, Nikolay Shaplov wrote:
> This bug was not fixed for debian jessie, as I can see... 
> And I think it should be fixed in all supported distributives, as it
> can cause problems.

Thanks for reminding me. I uploaded a new version for jessie yesterday.

-- 
-- arthur - adej...@debian.org - http://people.debian.org/~adejong --



signature.asc
Description: This is a digitally signed message part


Bug#794686: nslcd start script does not report starting failure

2016-02-11 Thread Nikolay Shaplov

This bug was not fixed for debian jessie, as I can see... 
And I think it should be fixed in all supported distributives, as it can cause 
problems.



Bug#794686: nslcd start script does not report starting failure

2015-08-09 Thread Arthur de Jong
Control: tags -1 + pending

On Wed, 2015-08-05 at 20:02 +0300, Nikolay Shaplov wrote:
 Package: nslcd
 Version: 0.9.4-3
 Severity: serious
 Justification: fails to build from source

Justification is not right but the init script return code is not
according to policy so I'll leave it at serious.

 # /etc/init.d/nslcd stop
 [ ok ] Stopping nslcd (via systemctl): nslcd.service.
 # /etc/init.d/nslcd start
 [ ok ] Starting nslcd (via systemctl): nslcd.service.
 
 It does not report any problem, not to the console, not to the syslog

It does report a problem to stderr but systemd seems to hide it when
the return code is 0 (that was incorrect).

The fix is to remove the last exit 0 from /etc/init.d/nslcd.

Thanks for reporting this.

-- 
-- arthur - adej...@debian.org - http://people.debian.org/~adejong --


signature.asc
Description: This is a digitally signed message part


Processed: Re: Bug#794686: nslcd start script does not report starting failure

2015-08-09 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 + pending
Bug #794686 [nslcd] nslcd start script does not report starting failure
Added tag(s) pending.

-- 
794686: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794686
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#794686: nslcd start script does not report starting failure

2015-08-05 Thread Nikolay Shaplov
Package: nslcd
Version: 0.9.4-3
Severity: serious
Justification: fails to build from source



Script that starts nslcd service does not make sure that service started 
successfully. 

For example, lets spoil nslcd config file: add a comment at the end of the 
/etc/nslcd.conf 
file without newline at the end. (It consider it as an error in config) and 
then stop and start nslcd


# /etc/init.d/nslcd stop
[ ok ] Stopping nslcd (via systemctl): nslcd.service.
# /etc/init.d/nslcd start
[ ok ] Starting nslcd (via systemctl): nslcd.service.

It does not report any problem, not to the console, not to the syslog

# cat /var/log/syslog | grep nslcd

but process is not actually stared.

# ps aux | grep nslcd
root 12011  0.0  0.0  12744  2204 pts/1S+   19:56   0:00 grep nslcd

ls -a /var/run/nslcd/
..  ..


If you try to run nslcd manually, it will properly report about config file 
problem:

# nslcd 
nslcd: /etc/nslcd.conf:34: line too long or last line missing newline


This problem should be fixed. Because it make difficult configuring LDAP 
authentication
when you are sure that nslcd is running, but it is not.




-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nslcd depends on:
ii  adduser3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56
ii  libc6  2.19-18
ii  libgssapi-krb5-2   1.12.1+dfsg-19
ii  libldap-2.4-2  2.4.40+dfsg-1

Versions of packages nslcd recommends:
ii  bind9-host [host]   1:9.9.5.dfsg-9
ii  ldap-utils  2.4.40+dfsg-1
ii  libnss-ldapd [libnss-ldap]  0.9.4-3
ii  libpam-ldapd [libpam-ldap]  0.9.4-3
ii  nscd2.19-18
ii  nslcd-utils 0.9.4-3

Versions of packages nslcd suggests:
pn  kstart  none

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org