summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEC2 Default User <eisin@users.noreply.github.com>2018-07-01 12:33:14 +0200
committerEC2 Default User <eisin@users.noreply.github.com>2018-07-01 12:33:14 +0200
commit12c77e1253e67a9b176824937487294c3238c592 (patch)
treea55584111b48225cfdc8047fc2b2c1d1df0aea41
parentupdate README (diff)
downloadpamldapd-12c77e1253e67a9b176824937487294c3238c592.tar
pamldapd-12c77e1253e67a9b176824937487294c3238c592.tar.gz
pamldapd-12c77e1253e67a9b176824937487294c3238c592.tar.bz2
pamldapd-12c77e1253e67a9b176824937487294c3238c592.tar.lz
pamldapd-12c77e1253e67a9b176824937487294c3238c592.tar.xz
pamldapd-12c77e1253e67a9b176824937487294c3238c592.tar.zst
pamldapd-12c77e1253e67a9b176824937487294c3238c592.zip
-rw-r--r--Makefile8
-rw-r--r--src/pamldapd.go3
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cd9c983..0093c01 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
.DEFAULT_GOAL := default
-all: x86-64 i386
-default: x86-64
-x86-64: x86-64.build
-i386: i386.build
+all: pamldapd-x86-64 pamldapd-i386
+default: pamldapd-x86-64
+pamldapd-x86-64: x86-64.build Dockerfile_x86-64
+pamldapd-i386: i386.build Dockerfile_i386
%.build: src/pamldapd.go
@echo BUILD ARCH $(shell basename $@ .build)
docker build -t pamldapd-build-$(shell basename $@ .build)-tmp -f Dockerfile_$(shell basename $@ .build) .
diff --git a/src/pamldapd.go b/src/pamldapd.go
index b43797b..9715ca1 100644
--- a/src/pamldapd.go
+++ b/src/pamldapd.go
@@ -76,7 +76,8 @@ func main() {
l.CloseFunc("", backend)
backend.logger.Printf("LDAP server listen: %s", backend.Listen)
if err := l.ListenAndServe(backend.Listen); err != nil {
- backend.logger.Fatalf("LDAP server listen failed: %s", err.Error())
+ backend.logger.Printf("LDAP server listen failed: %s", err.Error())
+ os.Exit(1)
}
}