From d1e68903ea41ea48e23f65d2488dca2a89f7e4b9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 7 Apr 2005 13:42:52 +0000 Subject: [PATCH] added developer FAQ --- lam/docs/devel/FAQ.htm | 64 ++++++++++++++++++++++++++++++++++++++++ lam/docs/devel/index.htm | 3 ++ 2 files changed, 67 insertions(+) create mode 100644 lam/docs/devel/FAQ.htm diff --git a/lam/docs/devel/FAQ.htm b/lam/docs/devel/FAQ.htm new file mode 100644 index 00000000..64430144 --- /dev/null +++ b/lam/docs/devel/FAQ.htm @@ -0,0 +1,64 @@ + + + + Developer FAQ + + + +
+

Developer FAQ
+

+
+
Q: +Where is the ldap/config object?
+
+A: The ldap object +is in $_SESSION['ldap'] +and the config object in $_SESSION['config'].
+
+
+
+

+
+
Q: +How can I make LDAP operations, where is the user name and password?
+
+A: LAM +automatically reconnects to the LDAP server on every page load. You can +use $_SESSION['ldap']->server +which is the LDAP server handle.
+Be sure to include ldap.inc before (automatically included for account +modules).
+
+Example: ldap_search($_SESSION['ldap']->server, $suffix, $filter, $attributes)
+
+
+
+Q: What is the LDAP suffix for +the different account types?
+
+A: Just call $_SESSION['config']->get_Suffix($scope) +where $scope is the account type (user,group, ...).
+Be sure to include ldap.inc before (automatically included for account +modules).
+
+Example: $suffix = $_SESSION['config']->get_Suffix('user')
+
+
+
+Q: How can I check if the user is +really logged in and not calling the scripts by hand?
+
+A: After the user +successfully logged in to LAM the variable $_SESSION['loggedIn'] +is set to true.
+
+
+ + diff --git a/lam/docs/devel/index.htm b/lam/docs/devel/index.htm index bbf225d9..f9996cee 100644 --- a/lam/docs/devel/index.htm +++ b/lam/docs/devel/index.htm @@ -91,6 +91,9 @@ lists

+

FAQ

+
+