Lines Matching refs:realm

91      * instance. Possible causes would be either of java.security.krb5.realm or
107 * instance. Possible causes would be either of java.security.krb5.realm or
156 defaultRealm = getProperty("java.security.krb5.realm");
161 "java.security.krb5.realm both must be set or " +
541 * Configuration file contains information about the default realm,
829 * Parses key-value pairs under [realms]. The key would be the realm
831 * information for the realm given within a pair of braces.
1089 * Resets the default kdc realm.
1094 public void resetDefaultRealm(String realm) {
1096 System.out.println(">>> Config try resetting default kdc " + realm);
1149 * Gets default realm.
1150 * @throws KrbException where no realm can be located
1151 * @return the default realm, always non null
1158 String realm = getDefault("default_realm", "libdefaults");
1159 if ((realm == null) && useDNS_Realm()) {
1160 // use DNS to locate Kerberos realm
1162 realm = getRealmFromDNS();
1167 if (realm == null) {
1168 realm = java.security.AccessController.doPrivileged(
1180 if (realm == null) {
1181 KrbException ke = new KrbException("Cannot locate default realm");
1187 return realm;
1193 * @param realm the realm for which the KDC list is desired
1194 * @throws KrbException if there's no way to find KDC for the realm
1197 public String getKDCList(String realm) throws KrbException {
1198 if (realm == null) {
1199 realm = getDefaultRealm();
1201 if (realm.equalsIgnoreCase(defaultRealm)) {
1205 String kdcs = getDefault("kdc", realm);
1209 kdcs = getKDCFromDNS(realm);
1246 * Locate Kerberos realm using DNS
1248 * @return the Kerberos realm
1251 // use DNS to locate Kerberos realm
1252 String realm = null;
1258 "Unable to locate Kerberos realm: " + e.getMessage());
1262 // get the domain realm mapping from the configuration
1268 realm = checkRealm(domain);
1269 if (realm != null) {
1274 realm = checkRealm(mapRealm);
1276 if (realm == null) {
1278 "Unable to locate Kerberos realm");
1280 return realm;
1284 * Check if the provided realm is the correct realm
1285 * @return the realm if correct, or null otherwise
1297 // if no DNS TXT records found, try again using sub-realm
1312 * @param realm the realm for which the master KDC is desired
1315 private String getKDCFromDNS(String realm) throws KrbException {
1323 srvs = KrbServiceLocator.getKerberosService(realm, "_udp");
1329 srvs = KrbServiceLocator.getKerberosService(realm, "_tcp");
1334 "Unable to locate KDC for realm " + realm);