Index: openacs-4/packages/acs-authentication/acs-authentication.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/acs-authentication.info,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/acs-authentication/acs-authentication.info 23 Oct 2003 10:27:36 -0000 1.5
+++ openacs-4/packages/acs-authentication/acs-authentication.info 24 Oct 2003 13:29:04 -0000 1.6
@@ -7,24 +7,27 @@
t
t
-
+
Lars Pind
Authentication and related functionality.
Collaboraid
Implements authentication-related security functions for OpenACS, including authentication, password maangement, account management, session management, etc.
-
+
-
+
-
+
-
+
+
+
+
Index: openacs-4/packages/acs-authentication/tcl/sync-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/sync-procs.tcl,v
diff -u -r1.23 -r1.24
--- openacs-4/packages/acs-authentication/tcl/sync-procs.tcl 23 Oct 2003 10:27:36 -0000 1.23
+++ openacs-4/packages/acs-authentication/tcl/sync-procs.tcl 24 Oct 2003 13:29:04 -0000 1.24
@@ -356,6 +356,41 @@
set success_p 0
} else {
set user_id $result(user_id)
+
+ set dotlrn_urls [site_node::get_children \
+ -package_key "dotlrn" \
+ -node_id [site_node::get_node_id -url /]]
+
+ if { [llength $dotlrn_urls] > 0 } {
+ # .LRN is installed and mounted, add user to .LRN
+
+ set type [parameter::get_from_package_key \
+ -parameter SyncDotLrnUserType \
+ -package_key "acs-authentication" \
+ -default "student"]
+
+ set can_browse_p [parameter::get_from_package_key \
+ -parameter SyncDotLrnAccessLevel \
+ -package_key "acs-authentication" \
+ -default 1]
+
+ set read_private_data_p [parameter::get_from_package_key \
+ -parameter SyncDotLrnReadPrivateDataP \
+ -package_key "acs-authentication" \
+ -default 1]
+
+ dotlrn::user_add \
+ -id $user_info(email) \
+ -type $type \
+ -can_browse=$can_browse_p \
+ -user_id $user_id
+
+ acs_privacy::set_user_read_private_data \
+ -user_id $user_id \
+ -object_id [dotlrn::get_package_id] \
+ -value $read_private_data_p
+
+ }
}
# We ignore account_status