| 1308 | } |
| 1309 | |
| 1310 | Status SecureAuthProvider::InitKerberos(const string& principal) { |
| 1311 | principal_ = principal; |
| 1312 | |
| 1313 | RETURN_IF_ERROR(ParseKerberosPrincipal( |
| 1314 | principal_, &service_name_, &hostname_, &realm_)); |
| 1315 | |
| 1316 | LOG(INFO) << "Using " << (is_internal_ ? "internal" : "external") |
| 1317 | << " kerberos principal \"" << service_name_ << "/" |
| 1318 | << hostname_ << "@" << realm_ << "\""; |
| 1319 | |
| 1320 | return Status::OK(); |
| 1321 | } |
| 1322 | |
| 1323 | // For the environment variable attr, append "-Dthing=thingval" if "thing" is not already |
| 1324 | // in the current attr's value. |