Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 656854 Details for
Bug 799129
[RFE] Add Kerberos authentication for Cumin
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Remove need for kerberos_server in configuration.
kerbauth.patch (text/plain), 3.49 KB, created by
Chad Roberts
on 2012-12-03 18:06:31 UTC
(
hide
)
Description:
Remove need for kerberos_server in configuration.
Filename:
MIME Type:
Creator:
Chad Roberts
Created:
2012-12-03 18:06:31 UTC
Size:
3.49 KB
patch
obsolete
>Index: cumin/python/cumin/kerbauth.py >=================================================================== >--- cumin/python/cumin/kerbauth.py (revision 5557) >+++ cumin/python/cumin/kerbauth.py (working copy) >@@ -11,21 +11,19 @@ > class CuminAuthenticatorKerberos(object): > def __init__(self, mech, app): > log.info("Initializing %s", self) >- self.kerb_url = app.kerberos_server > self.kerb_realm = app.kerberos_realm >- if (self.kerb_url is not None and self.kerb_realm is not None >- and self.kerb_url is not "" and self.kerb_realm is not ""): >+ if (self.kerb_realm is not None and self.kerb_realm is not ""): > self.valid = True > else: > self.valid = False > log.info("Required values for kerberos_server and kerberos_realm not set") > > def authenticate(self, username, password): >- log.debug("Authenticating for user %s against %s", (username, self.__class__.__name__)) >+ log.debug("Authenticating for user %s against %s" % (username, self.__class__.__name__)) > isAuth = False > if self.valid: > try: >- isAuth = kerberos.checkPassword(username, password, self.kerb_url, self.kerb_realm) >+ isAuth = kerberos.checkPassword(username, password, "HTTP", self.kerb_realm) > except Exception, e: > log.debug("Auth failed %s" % e) > else: >Index: cumin/python/cumin/config.py >=================================================================== >--- cumin/python/cumin/config.py (revision 5557) >+++ cumin/python/cumin/config.py (working copy) >@@ -141,10 +141,7 @@ > > param = ConfigParameter(self, "ldap_timeout", int) > param.default = 30 >- >- param = ConfigParameter(self, "kerberos_server", str) >- param.default = "" >- >+ > param = ConfigParameter(self, "kerberos_realm", str) > param.default = "" > >Index: cumin/etc/cumin.conf >=================================================================== >--- cumin/etc/cumin.conf (revision 5557) >+++ cumin/etc/cumin.conf (working copy) >@@ -104,7 +104,6 @@ > # ldap_tls_cacertfile: > # ldap_tls_cacertdir: > # ldap_timeout: 30 >-# kerberos_server: > # kerberos_realm: > > #notification-timeout: 180 >@@ -311,16 +310,12 @@ > ## ldap_timeout: 30 > ## Timeout in seconds for connections to an LDAP server > >-## kerberos_server: >-## setting this [in addition to auth:kerb and kerberos_realm] will activate >-## kerberos authentication for cumin. The kerberos_server string should >-## be either the IP address or FQDN of the kerberos_server. >- > ## kerberos_realm: >-## setting this [in addition to auth:kerb and kerberos_server] will activate >+## setting this [in addition to auth:kerb] will activate > ## kerberos authentication for cumin. This should be set to the realm > ## defined by your kerberos server. Typically, this value will be in all caps >-## and look like "EXAMPLE.COM" >+## and look like "EXAMPLE.COM". This value needs to be valid according to >+## your own krb5.conf file (where it is mapped to a kdc server). > > ## [data] > >Index: cumin/bin/cumin-web >=================================================================== >--- cumin/bin/cumin-web (revision 5557) >+++ cumin/bin/cumin-web (working copy) >@@ -71,7 +71,6 @@ > cumin.ldap_tls_cacertfile = values.ldap_tls_cacertfile > > def set_kerberos_configs(cumin, values): >- cumin.kerberos_server = values.kerberos_server > cumin.kerberos_realm = values.kerberos_realm > > def check_cert_files(opts):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 799129
: 656854