[asl-commit] ActiveSambaLdap r15:

kou at cozmixng.org kou at cozmixng.org
Fri Aug 3 22:31:45 EDT 2007


retro	2007-08-04 11:31:44 +0900 (Sat, 04 Aug 2007)

  New Revision: 15

  Added directories:
    trunk/rails/
    trunk/rails/plugin/
    trunk/rails/plugin/active_samba_ldap/
  Added files:
    trunk/rails/plugin/active_samba_ldap/init.rb
  Modified files:
    trunk/lib/active_samba_ldap/base.rb
    trunk/lib/active_samba_ldap/configuration.rb

  Log:


  Added: trunk/rails/

  Added: trunk/rails/plugin/

  Added: trunk/rails/plugin/active_samba_ldap/

  Modified: trunk/lib/active_samba_ldap/base.rb (+4 -0)
===================================================================
--- trunk/lib/active_samba_ldap/base.rb	2006-11-14 00:22:09 -15:00 (rev 14)
+++ trunk/lib/active_samba_ldap/base.rb	2007-08-04 11:31:44 +09:00 (rev 15)
@@ -93,6 +93,10 @@
 
   class Base < ActiveLdap::Base
     class << self
+      def reloadable?
+        false
+      end
+
       def restart_nscd
         nscd_working = system("/etc/init.d/nscd status >/dev/null 2>&1")
         system("/etc/init.d/nscd stop >/dev/null 2>&1") if nscd_working

  Added: trunk/rails/plugin/active_samba_ldap/init.rb (+6 -0)
===================================================================
--- trunk/rails/plugin/active_samba_ldap/init.rb	2006-11-14 00:22:09 -15:00 (rev 14)
+++ trunk/rails/plugin/active_samba_ldap/init.rb	2007-08-04 11:31:44 +09:00 (rev 15)
@@ -0,0 +1,6 @@
+require_dependency 'active_samba_ldap'
+ActiveSambaLdap::Base.logger ||= RAILS_DEFAULT_LOGGER
+ldap_configuration_file = File.join(RAILS_ROOT, 'config', 'ldap.yml')
+ActiveSambaLdap::Base.configurations =
+  ActiveSambaLdap::Configuration.read(ldap_configuration_file)
+ActiveSambaLdap::Base.establish_connection

  Modified: trunk/lib/active_samba_ldap/configuration.rb (+8 -0)
===================================================================
--- trunk/lib/active_samba_ldap/configuration.rb	2006-11-14 00:22:09 -15:00 (rev 14)
+++ trunk/lib/active_samba_ldap/configuration.rb	2007-08-04 11:31:44 +09:00 (rev 15)
@@ -230,6 +230,14 @@
           netbios_name ? "\\\\#{netbios_name}\\profiles\\%U" : nil
         end
 
+        def user_home
+          "/home/%U"
+        end
+
+        def user_login_shell
+          "/nonexistent"
+        end
+
         def user_home_drive
           "H:"
         end



More information about the asl-commit mailing list