Commit Graph

2664 Commits

Author SHA1 Message Date
lxnay 66a51aa4ff Entropy/outputTools:
- fix typo in readtext()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2244 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-04 18:04:42 +00:00
lxnay cf7055d407 Entropy/i18n:
- fix a typo inside entropy_i18n module


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2243 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-04 16:20:57 +00:00
lxnay befa1f5fe5 Entropy/EntropyRepositorySocketClientCommands:
- implement support for user_data command
Entropy/phpbb3Authenticator:
- move here, since can be useful to third parties too
Entropy/SocketHostInterface/Authenticator:
- add basic function get_userdata to retrieve logged user information
- add a new built-in command user_data
svn ci -m 

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2242 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-04 06:53:49 +00:00
lxnay a0f9672e58 Entropy/managerTools/Electron:
- tweak some widgets making them a bit less rough
Entropy/SocketHostInterface/Authenticator:
- add basic function get_userdata to retrieve logged user information
- add a new built-in command user_data
Entropy/EntropyRepositorySocketClientCommands:
- add support for user_data command


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2241 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-04 06:45:22 +00:00
lxnay fc4a6a31e8 Entropy/server.conf:
- update server.conf.example accordingly to my previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2240 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 23:01:42 +00:00
lxnay 651b3b9efb outputTools:
- implemented generic method inputBox(), in this way we can have reimplement it depending on the frontend
- make readtext handle password submissions (no echo)
Entropy/Repository Manager:
- implement a ready to use input dialog widget in managerTools
- started to implement repository authentication (if enabled)
- reimplemented inputBox method
- added a PasswordEdit widget, a subclass of urwid.Edit for password inputs
Entropy/entropyConstants:
- add ssl_service_port, service_port and service_url information to etpConst['server_repositories'] and updated repository| syntax (backward compat btw)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2239 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 23:01:14 +00:00
lxnay 2072c6eaa9 Entropy/i18n:
- update translations
- update template


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2238 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 16:04:29 +00:00
lxnay 6fbeab526e Entropy/PackageInterface:
- fix entropyTools attribute path


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2237 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 11:10:06 +00:00
lxnay ab507792b7 Entropy/PackageInterface:
- return 0 if in _install_package_into_gentoo_database() the world file is not found
- catch UnicodeDecodeError and UnicodeEncodeError while reading and writing the world file


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2236 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 11:09:08 +00:00
lxnay 0a02ca0bf5 Entropy/Equo:
- fix unicode decoding issues in the orphans tool


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2235 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 10:02:56 +00:00
lxnay 22ec18ae24 Entropy/ServerInterface:
- avoid to give up when online md5 check returns unknown data


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2234 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 09:12:03 +00:00
lxnay 928bb73874 Entropy/RepoInterface:
- adding server.cert and ca.cert to __construct_paths()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2233 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 09:02:14 +00:00
lxnay 73d8930948 Entropy/RepositorySocketClientInterface:
- complete basic SSL support
Entropy/RepoInterface:
- make entropy clients to download server certificates correctly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2232 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 23:08:27 +00:00
lxnay 399ebd228b Entropy/SocketHostInterface:
- SSL: also issue load_client_ca()
- SSL: handle more SSL exceptions correctly
Entropy/RepositorySocketClientInterface:
- handle both pyopenssl and socket.ssl (as fallback) properly, this will make SSL support more solid
- test some stuff, please be patient, still working on fine tuning some details


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2231 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 17:13:58 +00:00
lxnay b6745864ea Entropy/SocketHostInterface:
- some misc updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2230 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 14:06:14 +00:00
lxnay 81f94877dc Entropy/SocketHostInterface:
- some misc updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2229 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 14:01:48 +00:00
lxnay 5e584c0877 Entropy/SocketHostInterface:
- some misc updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2228 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 14:00:10 +00:00
lxnay 5a893f2996 Entropy/SSL/Sabayon:
- update, hopefully for the last time, our certs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2227 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:47:56 +00:00
lxnay 242cbb9a45 Entropy/SocketHostInterface/SSL:
- do not raise OSError exceptions on os.chown()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2226 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:45:42 +00:00
lxnay 2da585a909 Entropy/SocketHostInterface/SSL:
- indent setup_ssl() a little bit better
- do not overwrite previous certificates/keys


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2225 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:44:26 +00:00
lxnay f23e72d263 Entropy/SocketHostInterface/SSL:
- since SSL stuff is autogenerated, there's no need to raise those exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2224 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:41:18 +00:00
lxnay d37a49d901 Entropy/SocketHostInterface/SSL:
- update create_ca_certs() and rename it to create_ca_server_certs()
- make SSL certificates creation fully automated
Entropy/ServerInterface:
- make upload_database() to push both server and CA certificates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2223 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:39:26 +00:00
lxnay b355cb98ae Entropy/SSL/Sabayon:
- add our SSL server certificate back


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2222 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:18:08 +00:00
lxnay de179c35f7 Entropy/SSL/Sabayon:
- update Sabayon Linux SS CA cert


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2221 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:07:31 +00:00
lxnay 7f501cc427 Entropy/SocketHostInterface:
- avoid to raise OSError if chown() fails


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2220 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:05:02 +00:00
lxnay 3592f41deb Entropy/SocketHostInterface:
- fix create_ca_certs(), make it creating a certificate request


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2219 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:00:04 +00:00
lxnay 9d8490d692 Entropy/SSL Repository functions:
- update addRepository() make it set the ssl_service_port parameter too
Entropy/phpbb3 Auth Interface:
- when updating session information, do not overwrite browser_string and session_admin to preserve browser's cookie validity
Entropy/ServerInterface:
- make it upload the repository's CA certificate too, if found
Entropy/SocketHostInterface:
- complete the SSL implementation, adding CA certificates functions too
Entropy/RepositorySocketClientInterface:
- start to implement SSL support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2218 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 12:57:23 +00:00
lxnay 32ae9f495e Entropy/exceptions:
- add SSLError exception class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2217 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 12:52:57 +00:00
lxnay 3b794dcb1c Entropy/configuration:
- update repositories.conf accordingly to my previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2216 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 12:52:34 +00:00
lxnay 1b03c09179 Entropy/SSL Services:
- add ssl_port parameter to etpRepositories, making it configurable
- update entropyTools.saveRepositorySettings() accordingly
Entropy/constants:
- add CA.crt and CA.key constants that will be used by the new SSL code in SocketHostInterface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2215 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 12:51:49 +00:00
lxnay 1c26d269dc Entropy/phpbb3 Auth Interface:
- properly escape sql


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2214 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 22:35:34 +00:00
lxnay 4139fd0d87 Entropy/phpbb3 Auth Interface:
- properly escape sql


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2213 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 21:58:22 +00:00
lxnay 64cb459f8b Entropy/phpbb3 Auth Interface:
- fix _generate_sql()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2212 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:24:02 +00:00
lxnay 518a746584 Entropy/phpbb3 Auth Interface:
- fix SQL syntax error


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2211 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:19:10 +00:00
lxnay 882a7f7bfb Entropy/SocketHostInterface/Repository Daemon:
- fix docmd_login arguments length


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2210 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:16:08 +00:00
lxnay 216ff1f3e2 Entropy/phpbb3 Auth Interface:
- fix typo

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2209 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:12:27 +00:00
lxnay 461ac49e8f Entropy/SocketHostInterface:
- store IP address inside session data
- update commands to make them use the new session param above
Entropy/repository daemon template:
- sync with API changes
Entropy/phpbb3 Auth Interface:
- use TABLE_PREFIX variable to be more compatible with exotic settings
- implement _update_session_table() to handle users activity


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2208 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:10:26 +00:00
lxnay e9885aba49 Entropy/Socket test client:
- update template


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2207 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:07:31 +00:00
lxnay 3da1f22b11 Entropy/BasicPamAuthenticator:
- fix user variable check
Entropy/repository daemon template:
- fix user variable check


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2206 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 13:34:58 +00:00
lxnay 237d6c2fae Entropy/SocketHostInterface:
- fix docmd_logout(): self.client_address doesn't exist in BuiltInCommands class, obviously


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2205 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 13:29:04 +00:00
lxnay 984e9ffa44 Entropy/SocketHostInterface:
- fix docmd_logout()
Entropy/Repository Client Interface:
- also handle 'no' answers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2204 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 13:26:14 +00:00
lxnay 6217542494 Entropy/Repository Client Interface:
- implement login method (only used w/SSL)
- implement logout method (only used w/SSL)
Entropy/SocketHostInterface:
- fix login and logout cmds (my fault)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2203 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 13:15:06 +00:00
lxnay f4e2f855ee Entropy/Sabayon Linux:
- add our SSL certificate


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2202 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:42:00 +00:00
lxnay 050756266b Entropy/SocketHostInterface:
- relax chown rules for SSL key and certs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2201 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:19:11 +00:00
lxnay d3a957e02a Entropy/repository daemon template:
- check client IP address too
Entropy/phpbb3 Auth Interface:
- add _is_ip_banned() method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2200 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:01:14 +00:00
lxnay 1faab94d42 Entropy/repository daemon template:
- update it to reflect API changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2199 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:41:26 +00:00
lxnay 5a84be0fd0 Entropy/DistributionAuthInterface:
- add FAKE_USERNAME, general purpose username
- add get_user_id()
Entropy/phpbb3 Auth Interface:
- reimplement FAKE_USERNAME and get_user_id()
Entropy/SocketHostInterface:
- remove session from authenticator arguments
- create a new authenticator function called set_session() to provide session id information to the authentication module


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2198 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:38:29 +00:00
lxnay d93ab1087c Entropy/phpbb3 Auth Interface:
- fix disconnect()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2197 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:09:05 +00:00
lxnay 6aef223e23 Entropy/SocketHostInterface:
- improve Authenticator


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2196 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:06:58 +00:00
lxnay 5ced75b8a4 Entropy/SocketHostInterface:
- fix builtin commands instantiation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2195 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 10:32:00 +00:00