Indefero

Indefero Commit Details


Date:2010-02-06 07:24:11 (14 years 10 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:2b107c1610f758c47e8ac3348c79d2f24f5eb8e8
Parents: 93d379f293b788b1a95e1249606447c986c720f7
Message:Added ticket 391, password storage configuration variable for Mercurial.

Changes:

File differences

doc/syncmercurial.mdtext
6767
6868
6969
70
71
72
73
74
75
76
77
7078
7179
7280
'extensions' => array(),
);
If you are note using Apache but Nginx, you may need to create the
passwords as plain text passwords (see ticket 391). You can configure
the password storage with the format you want. The default is `sha`
you can set it to `plain` for nginx.
$cfg['idf_plugin_syncmercurial_passwd_mode'] = 'sha';
See the [`FILE_PASSWD_*` constants](http://euk1.php.net/package/File_Passwd/docs/latest/File_Passwd/_File_Passwd-1.1.7---Passwd.php.html) for more choices.
## Cron configuration
src/IDF/Plugin/SyncMercurial.php
9797
9898
9999
100
100
101
101102
102103
103104
......
138139
139140
140141
141
142
143
142144
143145
144146
}
$ht = new File_Passwd_Authbasic($passwd_file);
$ht->load();
$ht->setMode(FILE_PASSWD_SHA);
$ht->setMode(Pluf::f('idf_plugin_syncmercurial_passwd_mode',
FILE_PASSWD_SHA));
if ($ht->userExists($user->login)) {
$ht->changePasswd($user->login, $this->getMercurialPass($user));
} else {
throw new Exception (sprintf(__('%s does not exist or is not writable.'), $passwd_file));
}
$ht = new File_Passwd_Authbasic($passwd_file);
$ht->setMode(FILE_PASSWD_SHA);
$ht->setMode(Pluf::f('idf_plugin_syncmercurial_passwd_mode',
FILE_PASSWD_SHA));
$ht->load();
$mem = $project->getMembershipData();
$members = array_merge((array)$mem['members'], (array)$mem['owners'],

Archive Download the corresponding diff file

Page rendered in 0.07568s using 14 queries.