You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ]$ ./create-portal-user
Traceback (most recent call last):
File "./create-portal-user", line 27, in <module>
from ipalib import api
ImportError: No module named ipalib <-- This is the error
# then tried to manuall load the lib and got this:
[]$ sudo pip install ipalib
WARNING: Running pip install with root privileges is generally not a
good idea. Try `pip install --user` instead.
Collecting ipalib
Complete output from command python setup.py egg_info:
In distributed package, building from C files...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-rcBXhA/gssapi/setup.py", line 109, in <module>
raise Exception("Could not find main GSSAPI shared library. Please "
Exception: Could not find main GSSAPI shared library. Please try
setting GSSAPI_MAIN_LIB yourself or setting ENABLE_SUPPORT_DETECTION
to 'false' <-- and again another error
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rcBXhA/gssapi/
Solved by installing the following package:
sudo dnf install python2-ipaclient
[me@portal ~]$ create-portal-user
Created privilege 'Portal management privilege'
Added permission 'System: Add Stage User' to privilege
Added permission 'System: Read Stage User' to privilege
Added permission 'System: Change User password' to privilege
Cannot add permission 'System: Read User Standard Attributes' to privilege
ipa: WARNING: Cannot add permission 'System: Read User Standard Attributes' to privilege
Cannot add permission 'System: Read User Addressbook Attributes' to privilege
ipa: WARNING: Cannot add permission 'System: Read User Addressbook Attributes' to privilege
Created role 'Portal management'
Added privilege 'Portal management privilege' to role 'Portal management'
Created user 'portal'
Added role 'Portal management' to user 'portal'
Retrieving keytab...
ipa-getkeytab -s prime.ipa.kkgpitt.org -p [email protected] -k /etc/ipa/portal.keytab
Failed to add key to the keytab
Traceback (most recent call last):
File "/home/me/.local/bin/create-portal-user", line 207, in <module>
main()
File "/home/me/.local/bin/create-portal-user", line 197, in main
create_keytab(args.username, args.keytab, args.keytab_owner)
File "/home/me/.local/bin/create-portal-user", line 180, in create_keytab
subprocess.check_call(cmd)
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ipa-getkeytab', '-s', u'prime.ipa.kkgpitt.org', '-p', u'[email protected]', '-k', '/etc/ipa/portal.keytab']' returned non-zero exit status 11
I tried manually running the command and then changing the pw and running again and got varying errors:
[jjflynn22@portal ~]$ ipa-getkeytab -s prime.ipa.kkgpitt.org -p <new pw> -k /etc/ipa/portal.keytab
Failed to parse result: PrincipalName not found.
Retrying with pre-4.0 keytab retrieval method...
Failed to parse result: PrincipalName not found.
Failed to get keytab!
Failed to get keytab
The text was updated successfully, but these errors were encountered:
I reached a first error that Alexander solved for me by having me load python2 libraries being that the new install only had python 3.
The second error I am still stuck at.
Error #1 - Install Documentation - create-portal-user error
Solved by installing the following package:
sudo dnf install python2-ipaclient
Error #2
I tried manually running the command and then changing the pw and running again and got varying errors:
The text was updated successfully, but these errors were encountered: