[Uludag-commits] r14654 - trunk/comar/ahenk/ajan/ajan
uludag-commits at pardus.org.tr
uludag-commits at pardus.org.tr
2 Tem 2007 Pzt 16:41:20 EEST
Author: gurer
Date: Mon Jul 2 16:41:20 2007
New Revision: 14654
Modified:
trunk/comar/ahenk/ajan/ajan/mod_user.py
Log:
kullanıcı veritabanı için ayrı bir URI verilmemişse
ana ldap URI sini kullan
Modified: trunk/comar/ahenk/ajan/ajan/mod_user.py
=================================================================
--- trunk/comar/ahenk/ajan/ajan/mod_user.py (original)
+++ trunk/comar/ahenk/ajan/ajan/mod_user.py Mon Jul 2 16:41:20 2007
@@ -9,6 +9,7 @@
# option) any later version. Please read the COPYING file.
#
+import ajan.config
import ajan.ldaputil
import ajan.pam
import ajan.nsswitch
@@ -40,7 +41,10 @@
def set_padl_config(self):
conf = header
- conf += "uri %s\n" % self.policy.ldap_uri
+ ldap_uri = self.policy.ldap_uri
+ if not ldap_uri:
+ ldap_uri = ajan.config.ldap.uri
+ conf += "uri %s\n" % ldap_uri
conf += "base %s\n" % self.policy.ldap_base
scope = {
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi