From 8b75ca4904f406539de992207ce2d0ff7bf49be0 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 28 Jul 2010 06:54:46 +0000 Subject: [PATCH] fixed a minor bug in closing ldap --- codepot/DEBIAN/Makefile.am | 2 +- codepot/DEBIAN/Makefile.in | 2 +- codepot/src/codepot/models/ldaploginmodel.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codepot/DEBIAN/Makefile.am b/codepot/DEBIAN/Makefile.am index d0fdb862..aae8392a 100644 --- a/codepot/DEBIAN/Makefile.am +++ b/codepot/DEBIAN/Makefile.am @@ -5,7 +5,7 @@ doc_DATA = copyright changelog debdir=/DEBIAN deb_DATA = control conffiles -deb_SCRIPTS = postinst postrm +deb_SCRIPTS = postinst postrm install-data-hook: gzip -9 -f $(DESTDIR)$(DOCDIR)/changelog diff --git a/codepot/DEBIAN/Makefile.in b/codepot/DEBIAN/Makefile.in index da879cad..58ff9855 100644 --- a/codepot/DEBIAN/Makefile.in +++ b/codepot/DEBIAN/Makefile.in @@ -173,7 +173,7 @@ EXTRA_DIST = conffiles copyright changelog doc_DATA = copyright changelog debdir = /DEBIAN deb_DATA = control conffiles -deb_SCRIPTS = postinst postrm +deb_SCRIPTS = postinst postrm all: all-am .SUFFIXES: diff --git a/codepot/src/codepot/models/ldaploginmodel.php b/codepot/src/codepot/models/ldaploginmodel.php index 2bf28c3f..47a07d3c 100644 --- a/codepot/src/codepot/models/ldaploginmodel.php +++ b/codepot/src/codepot/models/ldaploginmodel.php @@ -52,7 +52,7 @@ class LdapLoginModel extends LoginModel } - @ldap_unbind ($bind); + //@ldap_unbind ($ldap); @ldap_close ($ldap); return parent::authenticate ($userid, $password, $email); @@ -100,7 +100,7 @@ class LdapLoginModel extends LoginModel } - @ldap_unbind ($bind); + //@ldap_unbind ($ldap); @ldap_close ($ldap); $user['id'] = $userid;