You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2015/02/11 19:11:11 UTC

[jira] [Created] (AMBARI-9576) LDAP Sync: Port and Protocol hard coded /usr/sbin/ambari-server.py

Tom Beerbower created AMBARI-9576:
-------------------------------------

             Summary: LDAP Sync: Port and Protocol hard coded /usr/sbin/ambari-server.py
                 Key: AMBARI-9576
                 URL: https://issues.apache.org/jira/browse/AMBARI-9576
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower
             Fix For: 2.0.0


PROBLEM:  User is unable to ldap sync with ambari server and LDAP SSL configured. 

It appears that /usr/sbin/ambari-server.py has the port of the api hard coded.

{code}
root@ml-ambari /var/log>ambari-server sync-ldap --all -v 
Using python /usr/bin/python2.6 
Syncing with LDAP... 
INFO: about to run command: ps -p 54735 
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties 
Enter Ambari Admin login: rayoung 
Enter Ambari Admin password: 
Syncing all. 
Calling API /api/v1/ldap_sync_events : [{'Event': {'specs': [{'principal_type': 'users', 'sync_type': 'all'}, {'principal_type': 'groups', 'sync_type': 'all'}]}}] 
ERROR: Exiting with exit code 1. 
REASON: Sync event creation failed. Error details: <urlopen error [Errno 111] Connection refused>
{code}

It can be worked around by manually editing ...

{code}
SERVER_API_PROTOCOL = 'http'
SERVER_API_PORT = '8080'
{code}

in the python script or by turning off SSL and restarting Ambari.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)