{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cloudstack/issues/755","labels_url":"https://api.github.com/repos/apache/cloudstack/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/apache/cloudstack/issues/755/comments","events_url":"https://api.github.com/repos/apache/cloudstack/issues/755/events","html_url":"https://github.com/apache/cloudstack/pull/755","id":103497440,"number":755,"title":"Cloudstack:8647 LDAP Trust AD and Autoimport","user":{"login":"karuturi","id":186833,"avatar_url":"https://avatars.githubusercontent.com/u/186833?v=3","gravatar_id":"","url":"https://api.github.com/users/karuturi","html_url":"https://github.com/karuturi","followers_url":"https://api.github.com/users/karuturi/followers","following_url":"https://api.github.com/users/karuturi/following{/other_user}","gists_url":"https://api.github.com/users/karuturi/gists{/gist_id}","starred_url":"https://api.github.com/users/karuturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karuturi/subscriptions","organizations_url":"https://api.github.com/users/karuturi/orgs","repos_url":"https://api.github.com/users/karuturi/repos","events_url":"https://api.github.com/users/karuturi/events{/privacy}","received_events_url":"https://api.github.com/users/karuturi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-27T12:29:43Z","updated_at":"2015-09-01T09:01:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/cloudstack/pulls/755","html_url":"https://github.com/apache/cloudstack/pull/755","diff_url":"https://github.com/apache/cloudstack/pull/755.diff","patch_url":"https://github.com/apache/cloudstack/pull/755.patch"},"body":"Today, CloudStack can automatically import LDAP users based on the configuration to a domain or an account. However, any new users in LDAP aren't automatically reflected. The admin has to manually import them again.\r\nThis feature enables admin to map LDAP group/OU to a CloudStack domain and any changes are reflected in ACS as well.\r\nFS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/WIP%3A+LDAP%3A+Trust+AD+and+Auto+Import\r\n\r\ntestcases output:\r\n```\r\n-------------------------------------------------------\r\n T E S T S\r\n-------------------------------------------------------\r\nRunning groovy.org.apache.cloudstack.ldap.NoLdapUserMatchingQueryExceptionSpec\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 sec - in groovy.org.apache.cloudstack.ldap.NoLdapUserMatchingQueryExceptionSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapManagerImplSpec\r\nlog4j:WARN No appenders could be found for logger (org.apache.cloudstack.ldap.LdapManagerImpl).\r\nlog4j:WARN Please initialize the log4j system properly.\r\nlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.\r\nusing type:\r\nusing type: null\r\nusing type: TEST\r\nusing type: TEST TEST\r\nusing name:\r\nusing name: null\r\nusing accountType: -1\r\nusing accountType: 1\r\nusing accountType: 3\r\nusing accountType: 4\r\nusing accountType: 5\r\nusing accountType: 6\r\nusing accountType: 20000\r\nusing accountType: -500000\r\nTests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.387 sec - in groovy.org.apache.cloudstack.ldap.LdapManagerImplSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapListUsersCmdSpec\r\nTests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec - in groovy.org.apache.cloudstack.ldap.LdapListUsersCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapAddConfigurationCmdSpec\r\nTests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in groovy.org.apache.cloudstack.ldap.LdapAddConfigurationCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapUserSpec\r\nTests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in groovy.org.apache.cloudstack.ldap.LdapUserSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapAuthenticatorSpec\r\nTests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec - in groovy.org.apache.cloudstack.ldap.LdapAuthenticatorSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapConfigurationVOSpec\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in groovy.org.apache.cloudstack.ldap.LdapConfigurationVOSpec\r\nRunning groovy.org.apache.cloudstack.ldap.OpenLdapUserManagerSpec\r\nTests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec - in groovy.org.apache.cloudstack.ldap.OpenLdapUserManagerSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapDeleteConfigurationCmdSpec\r\nTests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in groovy.org.apache.cloudstack.ldap.LdapDeleteConfigurationCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapUserResponseSpec\r\nTests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in groovy.org.apache.cloudstack.ldap.LdapUserResponseSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapUserManagerFactorySpec\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in groovy.org.apache.cloudstack.ldap.LdapUserManagerFactorySpec\r\nRunning groovy.org.apache.cloudstack.ldap.ADLdapUserManagerImplSpec\r\nTests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec - in groovy.org.apache.cloudstack.ldap.ADLdapUserManagerImplSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapCreateAccountCmdSpec\r\nTests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.168 sec - in groovy.org.apache.cloudstack.ldap.LdapCreateAccountCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapImportUsersCmdSpec\r\nTests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec - in groovy.org.apache.cloudstack.ldap.LdapImportUsersCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LinkDomainToLdapCmdSpec\r\nTests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in groovy.org.apache.cloudstack.ldap.LinkDomainToLdapCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapSearchUserCmdSpec\r\nTests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in groovy.org.apache.cloudstack.ldap.LdapSearchUserCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapListConfigurationCmdSpec\r\nTests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in groovy.org.apache.cloudstack.ldap.LdapListConfigurationCmdSpec\r\nRunning groovy.org.apache.cloudstack.ldap.NoSuchLdapUserExceptionSpec\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in groovy.org.apache.cloudstack.ldap.NoSuchLdapUserExceptionSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapConfigurationResponseSpec\r\nTests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in groovy.org.apache.cloudstack.ldap.LdapConfigurationResponseSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapConfigurationSpec\r\nasserting for provider configuration: openldap\r\nasserting for provider configuration: microsoftad\r\nasserting for provider configuration:\r\nasserting for provider configuration:\r\nasserting for provider configuration: xyz\r\nasserting for provider configuration: MicrosoftAd\r\nasserting for provider configuration: OpenLdap\r\nasserting for provider configuration: MicrosoftAD\r\nTests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec - in groovy.org.apache.cloudstack.ldap.LdapConfigurationSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapContextFactorySpec\r\nTests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 sec - in groovy.org.apache.cloudstack.ldap.LdapContextFactorySpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapConfigurationDaoImplSpec\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in groovy.org.apache.cloudstack.ldap.LdapConfigurationDaoImplSpec\r\nRunning groovy.org.apache.cloudstack.ldap.LdapUtilsSpec\r\nTests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in groovy.org.apache.cloudstack.ldap.LdapUtilsSpec\r\n\r\nResults :\r\n\r\nTests run: 156, Failures: 0, Errors: 0, Skipped: 0\r\n```"},"comment":{"url":"https://api.github.com/repos/apache/cloudstack/issues/comments/136641317","html_url":"https://github.com/apache/cloudstack/pull/755#issuecomment-136641317","issue_url":"https://api.github.com/repos/apache/cloudstack/issues/755","id":136641317,"user":{"login":"asfbot","id":5243949,"avatar_url":"https://avatars.githubusercontent.com/u/5243949?v=3","gravatar_id":"","url":"https://api.github.com/users/asfbot","html_url":"https://github.com/asfbot","followers_url":"https://api.github.com/users/asfbot/followers","following_url":"https://api.github.com/users/asfbot/following{/other_user}","gists_url":"https://api.github.com/users/asfbot/gists{/gist_id}","starred_url":"https://api.github.com/users/asfbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfbot/subscriptions","organizations_url":"https://api.github.com/users/asfbot/orgs","repos_url":"https://api.github.com/users/asfbot/repos","events_url":"https://api.github.com/users/asfbot/events{/privacy}","received_events_url":"https://api.github.com/users/asfbot/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T09:01:49Z","updated_at":"2015-09-01T09:01:49Z","body":"[cloudstack-pull-rats #462](https://builds.apache.org/job/cloudstack-pull-rats/462/) SUCCESS\nThis pull request looks good"}}