{"action":"created","issue":{"url":"https://api.github.com/repos/ist-dsi/kadmin/issues/2","repository_url":"https://api.github.com/repos/ist-dsi/kadmin","labels_url":"https://api.github.com/repos/ist-dsi/kadmin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ist-dsi/kadmin/issues/2/comments","events_url":"https://api.github.com/repos/ist-dsi/kadmin/issues/2/events","html_url":"https://github.com/ist-dsi/kadmin/issues/2","id":227195545,"number":2,"title":"why it's not possible to generate principals and their keytabs in my case ?","user":{"login":"simoni1100","id":28229483,"avatar_url":"https://avatars3.githubusercontent.com/u/28229483?v=3","gravatar_id":"","url":"https://api.github.com/users/simoni1100","html_url":"https://github.com/simoni1100","followers_url":"https://api.github.com/users/simoni1100/followers","following_url":"https://api.github.com/users/simoni1100/following{/other_user}","gists_url":"https://api.github.com/users/simoni1100/gists{/gist_id}","starred_url":"https://api.github.com/users/simoni1100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simoni1100/subscriptions","organizations_url":"https://api.github.com/users/simoni1100/orgs","repos_url":"https://api.github.com/users/simoni1100/repos","events_url":"https://api.github.com/users/simoni1100/events{/privacy}","received_events_url":"https://api.github.com/users/simoni1100/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2017-05-08T22:38:17Z","updated_at":"2017-05-30T14:21:29Z","closed_at":"2017-05-10T14:00:34Z","body":"When I try to add principal and create keytab for a Kafka client I get no result but I have any error in the code.\r\nhere is the code:\r\n ```scala\r\nimport com.typesafe.config.ConfigFactory\r\nimport pt.tecnico.dsi.kadmin._\r\n\r\nobject appMain extends App {\r\n\r\n  import com.typesafe.config.Config\r\n  import com.typesafe.config.ConfigFactory\r\n\r\n  val conf = ConfigFactory.load\r\n  println(conf.getString(\"kadmin.realm\"))\r\n  val kadmi: Kadmin = new Kadmin(conf)\r\n\r\n  kadmi.addPrincipal(\"addprinc\", \"clie/kafka.example.com\", randKey = true)\r\n  kadmi.createKeytab(\"ktadd -e des3-cbc-sha1 -kt /home/sliman/cli.keytab\", \"clie/kafka.example.com\")\r\n}\r\n```\r\nand here is my \"reference.conf\" that i used:\r\n```scala\r\nkadmin {\r\n  realm = \"EXAMPLE.COM\"\r\n\r\n  principal = \"kadmin/admin\"\r\n  // If keytab is not empty \"command-keytab\" will be used.\r\n  // If password is not empty \"command-password\" will be used.\r\n  // If both password and keytab are not empty \"command-keytab\" will be used.\r\n  keytab = \"/etc/krb5.keytab\"\r\n  password = \"\"\r\n\r\n  // This is the command used to start kadmin.\r\n  // The literal string \"$FULL_PRINCIPAL\" will be replaced with s\"$principal@$realm\"\r\n  // The literal string \"$KEYTAB\" will be replaced with s\"$keytab\"\r\n  command-keytab = ${kadmin.command-password}\" -kt $KEYTAB\"\r\n  command-password = \"kadmin -p $FULL_PRINCIPAL\"\r\n\r\n  //The location to which keytabs will be generated to. Make sure this location:\r\n  // · is NOT volatile\r\n  // · is not world readable\r\n  // · the user running the application has permission to write and to read from it.\r\n  keytabs-location = \"/home/sliman\"\r\n\r\n  //Regex that matches against the kadmin command prompt\r\n  prompt = \"kadmin(.local)?: \"\r\n\r\n  # Kadmin will use as settings for scala-expect library those defined:\r\n  # 1) Here, directly under the path kadmin (these have precedence over the next ones).\r\n  # 2) On the same level as kadmin.\r\n}\r\n```\r\ncould you help me please !"},"comment":{"url":"https://api.github.com/repos/ist-dsi/kadmin/issues/comments/304893583","html_url":"https://github.com/ist-dsi/kadmin/issues/2#issuecomment-304893583","issue_url":"https://api.github.com/repos/ist-dsi/kadmin/issues/2","id":304893583,"user":{"login":"simoni1100","id":28229483,"avatar_url":"https://avatars3.githubusercontent.com/u/28229483?v=3","gravatar_id":"","url":"https://api.github.com/users/simoni1100","html_url":"https://github.com/simoni1100","followers_url":"https://api.github.com/users/simoni1100/followers","following_url":"https://api.github.com/users/simoni1100/following{/other_user}","gists_url":"https://api.github.com/users/simoni1100/gists{/gist_id}","starred_url":"https://api.github.com/users/simoni1100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simoni1100/subscriptions","organizations_url":"https://api.github.com/users/simoni1100/orgs","repos_url":"https://api.github.com/users/simoni1100/repos","events_url":"https://api.github.com/users/simoni1100/events{/privacy}","received_events_url":"https://api.github.com/users/simoni1100/received_events","type":"User","site_admin":false},"created_at":"2017-05-30T14:21:29Z","updated_at":"2017-05-30T14:21:29Z","body":"We can use the GSS-API to do a `kinit` and create a login context for it?"}}
{"actor":{"display_login":"simoni1100"}}