Bug 913509

Summary: openldap should be using portreserve
Product: Red Hat Enterprise Linux 7 Reporter: David Spurek <dspurek>
Component: openldapAssignee: Jan Synacek <jsynacek>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0CC: dspurek, ebenes, jsynacek, ksrot, lpoetter, notting, omoris, ovasik, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 790687 Environment:
Last Closed: 2013-08-08 05:11:02 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 790687    
Bug Blocks: 103401    

Comment 1 David Spurek 2013-02-21 06:57:40 EST
/bin/systemctl status  slapd.service
slapd.service - OpenLDAP Server Daemon
	  Loaded: loaded (/usr/lib/systemd/system/slapd.service; disabled)
	  Active: inactive (dead)


systemctl status  portreserve.service
portreserve.service - Port reservation utility
	  Loaded: loaded (/usr/lib/systemd/system/portreserve.service; disabled)
	  Active: active (running) since Thu 2013-02-21 06:51:46 EST; 6s ago
	 Process: 11448 ExecStart=/sbin/portreserve (code=exited, status=0/SUCCESS)
	Main PID: 11449 (portreserve)
	  CGroup: name=systemd:/system/portreserve.service
		  └─11449 /sbin/portreserve


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   FAIL   ] :: Running 'netstat -anp | grep 636 | grep portreserve' (Expected 0, got 1)
:: [   LOG    ] :: Duration: 0s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: Test

package versions:

openldap-2.4.33-3.el7
portreserve-0.0.5-6.el7
Comment 2 Bill Nottingham 2013-03-15 16:24:08 EDT
systemd socket activation should cover this, correct?
Comment 3 Jan Synacek 2013-08-08 05:11:02 EDT
If a service is activated by a socket, systemd creates that socket much sooner than any other service can claim it.