summaryrefslogtreecommitdiff
path: root/LedgerSMB/Auth.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Auth.pm')
-rw-r--r--LedgerSMB/Auth.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/LedgerSMB/Auth.pm b/LedgerSMB/Auth.pm
new file mode 100644
index 00000000..fec8209c
--- /dev/null
+++ b/LedgerSMB/Auth.pm
@@ -0,0 +1,23 @@
+#=====================================================================
+# LedgerSMB
+# Small Medium Business Accounting software
+# http://www.ledgersmb.org/
+#
+#
+# Copyright (C) 2006
+# This work contains copyrighted information from a number of sources all used
+# with permission. It is released under the GNU General Public License
+# Version 2 or, at your option, any later version. See COPYRIGHT file for
+# details.
+
+# This is a simple abstraction layer allowing other session handling mechanisms
+# (For example Kerberos tickets) as the application progresses.
+package LedgerSMB::Auth;
+
+use LedgerSMB::Sysconfig;
+
+if ( !${LedgerSMB::Sysconfig::auth} ) {
+ ${LedgerSMB::Sysconfig::auth} = 'DB';
+}
+
+require "LedgerSMB/Auth/" . ${LedgerSMB::Sysconfig::auth} . ".pm";