Member since
11-08-2016
7
Posts
7
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2737 | 06-18-2019 09:21 PM | |
4986 | 05-23-2019 11:25 AM | |
6451 | 01-11-2019 11:52 AM | |
1848 | 01-08-2019 05:32 PM | |
4238 | 01-08-2019 02:25 PM |
05-07-2021
08:42 AM
1. Is there any way to change font size, color. 2. when performing export upload to spreadsheet, I would always want to include the query that produced the result. Currently I have to do this manually.
... View more
07-22-2019
02:54 PM
@mmmunafo, I guess your workaround should be OK. The only other two option I could see would be to wrap the pam.authenticate() call with an unset and set of KRB5CCNAME. Assuming authentication takes milliseconds, it would be unlikely that Hue is attempting to retrieve cache information at that moment, but I don't know that it is any better than what you are up to. for instance, in desktop/core/src/desktop/auth/backend.py wrap: if pam.authenticate(username, password, desktop.conf.AUTH.PAM_SERVICE.get()): With del os.environ['KRB5CCNAME'] and then after auth: os.environ['KRB5CCNAME'] = desktop.conf.KERBEROS.CCACHE_PATH.get() NOTE: we would need to import os in backend.py to do that. So possibly, something like this would work: class PamBackend(DesktopBackendBase):
"""
Authentication backend that uses PAM to authenticate logins. The first user to
login will become the superuser.
"""
@metrics.pam_authentication_time
def authenticate(self, request=None, username=None, password=None):
username = force_username_case(username)
del os.environ['KRB5CCNAME']
if pam.authenticate(username, password, desktop.conf.AUTH.PAM_SERVICE.get()):
os.environ['KRB5CCNAME'] = desktop.conf.KERBEROS.CCACHE_PATH.get()
is_super = False
if User.objects.count() == 0:
is_super = True
try:
if desktop.conf.AUTH.IGNORE_USERNAME_CASE.get():
user = User.objects.get(username__iexact=username)
else:
user = User.objects.get(username=username)
except User.DoesNotExist:
user = find_or_create_user(username, None)
if user is not None and user.is_active:
profile = get_profile(user)
profile.creation_method = UserProfile.CreationMethod.EXTERNAL.name
profile.save()
user.is_superuser = is_super
ensure_has_a_group(user)
user.save()
user = rewrite_user(user)
return user
os.environ['KRB5CCNAME'] = desktop.conf.KERBEROS.CCACHE_PATH.get()
return None
@classmethod
def manages_passwords_externally(cls):
return True Might not be worth it, though
... View more
06-25-2019
03:00 AM
Hello, I've added the parameter in the security valve, it works fine. Thank you
... View more
01-17-2019
12:53 PM
Hello, Yes, adding search to blacklist did resolve the issue. I still don't know where the solr_url is coming without ever installing it but the issue has been resolved. Many thanks.
... View more
01-14-2019
11:50 PM
1 Kudo
Hi, ok I confirm that this really applies to the admin user (or I guess to every superuser). Other users cannot modify. Thanks
... View more
01-08-2019
02:25 PM
2 Kudos
Hi Rockem, The issue you are facing is due to hdfs permission. By default with "Store in default location" checked during hive table creation through Hue, we are trying to move the data to '/user/hive/warehouse' directory. The user you logged in don't have permission to move data to '/user/hive/warehouse', so table is created successful but no data. You can either grant the user with write permission to '/user/hive/warehouse' or uncheck the "Store in default location" checkbox so it creates external table without moving the file to '/user/hive/warehouse'. Then you will be abl e to see the data. Hope this helps! Weixia
... View more