{"action":"created","issue":{"url":"https://api.github.com/repos/yona-projects/yona/issues/390","repository_url":"https://api.github.com/repos/yona-projects/yona","labels_url":"https://api.github.com/repos/yona-projects/yona/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/yona-projects/yona/issues/390/comments","events_url":"https://api.github.com/repos/yona-projects/yona/issues/390/events","html_url":"https://github.com/yona-projects/yona/issues/390","id":323494053,"number":390,"title":"Active Directory LDAP 연결 성공하신 분 계신가요?","user":{"login":"k-enzy","id":1596847,"avatar_url":"https://avatars2.githubusercontent.com/u/1596847?v=4","gravatar_id":"","url":"https://api.github.com/users/k-enzy","html_url":"https://github.com/k-enzy","followers_url":"https://api.github.com/users/k-enzy/followers","following_url":"https://api.github.com/users/k-enzy/following{/other_user}","gists_url":"https://api.github.com/users/k-enzy/gists{/gist_id}","starred_url":"https://api.github.com/users/k-enzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-enzy/subscriptions","organizations_url":"https://api.github.com/users/k-enzy/orgs","repos_url":"https://api.github.com/users/k-enzy/repos","events_url":"https://api.github.com/users/k-enzy/events{/privacy}","received_events_url":"https://api.github.com/users/k-enzy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-16T07:10:15Z","updated_at":"2018-05-16T08:05:17Z","closed_at":null,"author_association":"NONE","body":"안녕하세요.\r\n\r\nactive directory와 연결 설정 해봤는데 \r\n\r\ninvalid credentials 에러가 나네요.\r\n\r\n혹시 성공하시분 계신가요?\r\n\r\n에러로그는 아래와 같습니다.\r\n\r\n=========================================\r\n2018-05-16 15:39:59,407 - [INFO] - from application in play-akka.actor.default-dispatcher-6 \r\ngetProperUsernameGuessing: CN=userxxxxxxx,OU=companyxxxxxDC=domainxxxxxx,DC=com\r\n\r\n2018-05-16 15:39:59,434 - [WARN] - from application in play-akka.actor.default-dispatcher-6 \r\nlogin failed \r\n[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ]"},"comment":{"url":"https://api.github.com/repos/yona-projects/yona/issues/comments/389431927","html_url":"https://github.com/yona-projects/yona/issues/390#issuecomment-389431927","issue_url":"https://api.github.com/repos/yona-projects/yona/issues/390","id":389431927,"user":{"login":"k-enzy","id":1596847,"avatar_url":"https://avatars2.githubusercontent.com/u/1596847?v=4","gravatar_id":"","url":"https://api.github.com/users/k-enzy","html_url":"https://github.com/k-enzy","followers_url":"https://api.github.com/users/k-enzy/followers","following_url":"https://api.github.com/users/k-enzy/following{/other_user}","gists_url":"https://api.github.com/users/k-enzy/gists{/gist_id}","starred_url":"https://api.github.com/users/k-enzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-enzy/subscriptions","organizations_url":"https://api.github.com/users/k-enzy/orgs","repos_url":"https://api.github.com/users/k-enzy/repos","events_url":"https://api.github.com/users/k-enzy/events{/privacy}","received_events_url":"https://api.github.com/users/k-enzy/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T08:05:17Z","updated_at":"2018-05-16T08:05:17Z","author_association":"NONE","body":"빠른답변 감사합니다. :)\r\n\r\n일단 제가 설정하는쪽 active directory 의CN에 해당하는 value값이 한글이름으로 되어 있고 \r\n\r\nbaseDN 설정 등은 다른 시스템(gitlab, redmine)에서 사용한 설정이었습니다.\r\n\r\ndistinguishedNamePostfix에는 어떤 내용이 들어가야 하나요?\r\nactive directory의 distinguishedName항목에 CN만 빼고 입력 하였습니다.\r\n\r\nfull email 사용시에는 아래와 같은 로그 메세지를 보입니다.\r\n\r\n==========================================\r\n\r\n2018-05-16 16:53:07,649 - [INFO] - from application in play-akka.actor.default-dispatcher-11 \r\ngetProperUsernameGuessing: userxxxxxxx@domainxxxxxx.com\r\n\r\n2018-05-16 16:53:07,662 - [INFO] - from application in play-akka.actor.default-dispatcher-11 \r\nfilter: (mail=userxxxxxxx@domainxxxxxx.com)\r\n\r\n2018-05-16 16:53:07,664 - [DEBUG] - from application in play-akka.actor.default-dispatcher-11 \r\nl: null\r\n\r\n2018-05-16 16:53:07,666 - [ERROR] - from play in play-akka.actor.default-dispatcher-11 \r\nCannot invoke the action, eventually got an error: java.lang.NullPointerException\r\n\r\n2018-05-16 16:53:07,679 - [ERROR] - from application in play-akka.actor.default-dispatcher-11 \r\n\r\n\r\n! @7818k8alb - Internal server error, for (POST) [/users/login] ->\r\n\r\nplay.api.Application$$anon$1: Execution exception[[NullPointerException: null]]\r\n\tat play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3.applyOrElse(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3.applyOrElse(PlayDefaultUpstreamHandler.scala:316) [com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:344) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:343) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46) [com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.Promise$class.complete(Promise.scala:55) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:23) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41) [com.typesafe.akka.akka-actor_2.10-2.3.4.jar:na]\r\n\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) [com.typesafe.akka.akka-actor_2.10-2.3.4.jar:na]\r\n\tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [org.scala-lang.scala-library-2.10.4.jar:na]\r\nCaused by: java.lang.NullPointerException: null\r\n\tat controllers.UserApp.authenticateWithLdap(UserApp.java:1160) ~[yona.yona-1.9.1.jar:1.9.1]\r\n\tat controllers.UserApp.loginByAjaxRequest(UserApp.java:302) ~[yona.yona-1.9.1.jar:1.9.1]\r\n\tat controllers.UserApp.login(UserApp.java:169) ~[yona.yona-1.9.1.jar:1.9.1]\r\n\tat Routes$$anonfun$routes$1$$anonfun$applyOrElse$79$$anonfun$apply$79.apply(routes_routing.scala:2637) ~[yona.yona-1.9.1.jar:na]\r\n\tat Routes$$anonfun$routes$1$$anonfun$applyOrElse$79$$anonfun$apply$79.apply(routes_routing.scala:2637) ~[yona.yona-1.9.1.jar:na]\r\n\tat play.core.Router$HandlerInvokerFactory$$anon$4.resultCall(Router.scala:264) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.invocation(Router.scala:255) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.j.JavaAction$$anon$1.call(JavaAction.scala:55) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat Global$2.call(Global.java:274) ~[yona.yona-1.9.1.jar:na]\r\n\tat play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46) [com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.concurrent.impl.Future$.apply(Future.scala:31) ~[org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.Future$.apply(Future.scala:485) ~[org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat play.core.j.JavaAction$class.apply(JavaAction.scala:82) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.apply(Router.scala:252) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.utils.Threads$.withContextClassLoader(Threads.scala:21) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:128) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:128) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:121) ~[com.typesafe.play.play_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496) ~[com.typesafe.play.play-iteratees_2.10-2.3.10.jar:2.3.10]\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\t... 6 common frames omitted\r\n\r\n==================================================\r\n\r\n쓰다보니 active directory에 설정되어 있는 도메인과 메일주소의 도메인이 다르네요.\r\n\r\n일단 내부 active directory의 설정이 일반적이지 않아서 몇가지 더 시도해 본 후 결과와 함께 이슈는 닫도록 하겠습니다.\r\n\r\n감사합니다."}}
{"actor":{"display_login":"k-enzy"}}