Authentication & System Scripts
These scripts manage the entry points to the system, verifying user credentials and loading session permissions.
1. User Login (login.xis)
The gatekeeper of the ABCD Central module.
- File:
wxis/login.xis - Primary Task:
<do task="search">(on the Users database) - Logic:
- Receives
loginandpasswordfrom the HTML form. - Searches the Users Database (often located at
bases/access/usersor similar). - Query usually looks like:
(v20="USERNAME"). - Verification: It compares the stored password (field v30) with the provided password.
- Session: If successful, it generates a "cookie" or session ID string (often combining date + random number) and returns the main menu structure.
- Receives
Relation to IsisScript Reference:
- Uses
<do task="search">to find the user. - Uses
<pft>to validate the password comparison conditionally.
2. Administration Tasks (administrar.xis)
Handles backend administrative requests, often acting as a router for creating new databases or managing paths.
- File:
wxis/administrar.xis - Usage: This script is often called when entering the "Database Administration" menu. It checks if the current user has the
admprofile before allowing access to sensitive tools (likefullinvordelete).
3. Permissions & CIPRES (cipres.xis)
"CIPRES" is a legacy acronym (Circulation/Prestamos) often associated with granular permission handling in ABCD.
- File:
wxis/cipres.xis(andcipres_usuario.xis) - Function: Used to validate if a specific user has rights to perform a specific action (e.g., "Can User X delete records in Database Y?").
- Mechanism: It reads the user's profile string (which contains formatted permission codes) and validates it against the requested operation.
4. LDAP Login (loginLDAP.xis)
An alternative to the standard login, designed to authenticate against an LDAP server (Active Directory, OpenLDAP).
- File:
wxis/loginLDAP.xis - Logic: Instead of searching a local Isis database for the password, this script acts as a wrapper to pass credentials to an external authentication provider (via PHP integration or specialized WXIS extensions if available).