Up to [LON-CAPA] / loncom / auth
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: version_2_3_2
Move &additional_machine_domains() to lonnet.pm so it is more widely available Move determination of default domain based on $ENV{'HTTP_HOST'} from lonlogin.pm to &default_login_domain() in lonnet.pm so it is more widely available Default domain in coursecatalog now uses lonnet::default_login_domain() to display catlog for appropriate domain on a server with multiple domains, based on URL. Bug 5136. If course catalog is displayed by a logged in user (other than public), catalog is shown for the domain of the current user's role, unless no role is selected, in which case catalog is shown for user's domain. Non-logged in user and public users see course catalog of the domain of the machine, as determined from lonnet:::default_login_domain().