LONI CVS
Adding a New CVS Repository
Managing a CVS Repository
Accessing a CVS Repository
General Approach
Integrate Users
- Add New User: Determine the new rows added to the application's database tables when a new user is added. Add database inserts to the CURS application page (substituting the CURS name, email, and password).
- Is User: Determine how to detect if a CURS user is also an application user. Add database queries to the CURS application page to make the determination.
- Sync User: Add database updates to the CURS application page that update the application's encrypted password whenever the CURS password is updated.
Encryption Method
- Change the application source code if the application does not encrypt user passwords as CURS does.
Change Password/New User Functionality
- Comment out or disable application source code that allows users to register or change passwords via the application.
Application Details
Calendar
- account.php (line 106): Remove "create a new account"
- account.php (line 107): Remove "forgot password"
- integration/curs.php: Add
- integration/uus.php (line 13): Add include("curs.php");
- integration/uus.php: Replace md5 with cursEncrypt in password encryption (adding queries for encrypted passwords)
- add 'view on plasma' button/functionality
Calendar Bugs
- account.php (line 52): Add case "subscribe": $from="subscribe|$calendar"; break;
- account.php (line 129): Add case "subscribe": $urlAdd = "?action=subscribe&calendar=$fromParts[1]"; break;
Mantis
- account_page.php (line 112-130): Remove change password fields
- account_page.php (line 148-156): Remove change email fields
- config_inc.php (line 62): Change g_login_method to CRYPT
- config_inc.php (line 77): Add $g_allow_signup = OFF;
- core/curs.php: Add
- core/authentication_api.php (line 16): Add include("curs.php");
- core/authentication_api.php (line 192): Replace crypt with cursEncrypt
TWiki
- data/.htpasswd Allow CURS service permission to change
- lib/TWiki.cfg (line 359): Edit for LONI user name
- bin/register (line 58): Add my $loniPassword = "";
- bin/register (line 82): Add
} elsif( $name eq "Loni Password" ) {
$loniPassword = $value;
- bin/register (line 96): Add
# check if LONI password matches (prevent external registrations)
if ( $loniPassword ne "icky" ) {
$url = &TWiki::getOopsUrl( $webName, $topic, "oopsregerr" );
TWiki::redirect( $query, $url );
return;
}
- bin/register (line 170: Add && ($name ne "Loni Password")
- bin/register (line 192): Add || ( $name eq "Loni Password" )