{"id":1705,"date":"2020-10-23T11:31:30","date_gmt":"2020-10-23T09:31:30","guid":{"rendered":"https:\/\/locallost.net\/?p=1705"},"modified":"2024-07-12T15:20:34","modified_gmt":"2024-07-12T13:20:34","slug":"realm-join-returns-with-error-server-not-found-in-kerberos-database","status":"publish","type":"post","link":"https:\/\/locallost.net\/?p=1705","title":{"rendered":"\u00ab\u00a0realm join\u00a0\u00bb returns with error \u00ab\u00a0Server not found in Kerberos database\u00a0\u00bb"},"content":{"rendered":"\n<p>Trying to join an AD domain (Sama 4 AD DC) from a specific (Ubuntu 20.04) server would fail with a \u00ab\u00a0Server not found in Kerberos database\u00a0\u00bb error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># realm join -U john.doe -v AD_EXAMPLE_NET\n * Resolving: _ldap._tcp.ad.example.net\n * Performing LDAP DSE lookup on: 10.100.100.2\n * Successfully discovered: ad.example.net\nPassword for john.doe:\n * Unconditionally checking packages\n * Resolving required packages\n * LANG=C \/usr\/sbin\/adcli join --verbose --domain ad.example.net --domain-realm AD.EXAMPLE.NET --domain-controller 10.100.100.2 --login-type user --login-user john.doe --stdin-password\n * Using domain name: ad.example.net\n * Calculated computer account name from fqdn: SRV\n * Using domain realm: ad.example.net\n * Sending NetLogon ping to domain controller: 10.100.100.2\n * Received NetLogon info from: smb.ad.example.net                                                                                                      \n * Wrote out krb5.conf snippet to \/var\/cache\/realmd\/adcli-krb5-dN4Dz2\/krb5.d\/adcli-krb5-conf-JLqdZ0\n * Authenticated as user: john.doe@AD.EXAMPLE.NET\n ! Couldn't authenticate to active directory: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server not found in Kerberos database)\nadcli: couldn't connect to ad.example.net domain: Couldn't authenticate to active directory: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server not found in Kerberos database)\n ! Insufficient permissions to join the domain<\/code><\/pre>\n\n\n\n<p>It turns out that this problem was that the IP address of the AD controller would not resolve back in reverse to it&rsquo;s original DNS name!<\/p>\n\n\n\n<p>The explanation of this problem (and solution) was found in the following post: <a href=\"https:\/\/aws.nz\/best-practice\/ad-join\/\">https:\/\/aws.nz\/best-practice\/ad-join\/<\/a><\/p>\n\n\n\n<p>The solution is either to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>set a correct DNS reverse PTR that points back to the DNS name of the AD controller<\/li>\n\n\n\n<li>or add the option <code>rdns = false<\/code> in the <code>[libdefaults]<\/code> setion in `\/etc\/krb5.conf`<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to join an AD domain (Sama 4 AD DC) from a specific (Ubuntu 20.04) server would fail with a \u00ab\u00a0Server not found in Kerberos database\u00a0\u00bb error: It turns out that this problem was that the IP address of the &hellip; <a href=\"https:\/\/locallost.net\/?p=1705\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1705","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2Bei9-rv","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/posts\/1705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/locallost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1705"}],"version-history":[{"count":4,"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/posts\/1705\/revisions"}],"predecessor-version":[{"id":1743,"href":"https:\/\/locallost.net\/index.php?rest_route=\/wp\/v2\/posts\/1705\/revisions\/1743"}],"wp:attachment":[{"href":"https:\/\/locallost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/locallost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/locallost.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}