2018年3月6日火曜日

Ambari 2.6.0のLDAP Sync

[root@sandbox-hdp ~]# ambari-server sync-ldap --ldap-sync-admin-name=admin --ldap-sync-admin-password=admin --all --verbose
Using python  /usr/bin/python
Syncing with LDAP...
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
INFO: about to run command: ps -p 75967
INFO:
process_pid=54184
Syncing all.
Calling API http://127.0.0.1:8080/api/v1/ldap_sync_events : [{'Event': {'specs': [{'principal_type': 'users', 'sync_type': 'all'}, {'principal_type': 'groups', 'sync_type': 'all'}]}}]
..

Completed LDAP Sync.
Summary:
  memberships:
    removed = 0
    created = 0
  users:
    skipped = 1
    removed = 0
    updated = 0
    created = 0
  groups:
    updated = 0
    removed = 0
    created = 0

Ambari Server 'sync-ldap' completed successfully.


org.apache.ambari.server.api.services.LdapSyncEventService#createEvent

ambari-server.log
06 Mar 2018 03:43:36,214  INFO [pool-24-thread-1] AmbariLdapDataPopulator:736 - Reloading properties
06 Mar 2018 03:43:36,301  INFO [pool-24-thread-1] AmbariLdapDataPopulator:221 - User 'admin' skipped because it is local user

org.apache.ambari.server.controller.AmbariManagementControllerImpl#synchronizeLdapUsersAndGroups
org.apache.ambari.server.security.ldap.AmbariLdapDataPopulator#synchronizeAllLdapUsers
org.apache.ambari.server.security.ldap.AmbariLdapDataPopulator#getExternalLdapUserInfo
org.apache.ambari.server.security.ldap.AmbariLdapDataPopulator#getFilteredLdapUsers(java.lang.String, org.springframework.ldap.filter.Filter)

      LOG.trace("LDAP User Query - Base DN: '{}' ; Filter: '{}'", baseDn, encodedFilter);

      List dtos = configuration.getLdapServerProperties().isPaginationEnabled() ?
# authentication.ldap.pagination.enabled=false does matter?


0 件のコメント:

コメントを投稿