remove trailing whitespace
This commit is contained in:
@@ -287,7 +287,7 @@ _kadm5_ad_connect(void *server_handle)
|
||||
if (r == NULL) {
|
||||
krb5_set_error_message(context->context, KADM5_NO_SRV, "Didn't find ldap dns");
|
||||
return KADM5_NO_SRV;
|
||||
}
|
||||
}
|
||||
|
||||
for (rr = r->head ; rr != NULL; rr = rr->next) {
|
||||
if (rr->type != rk_ns_t_srv)
|
||||
@@ -318,20 +318,20 @@ _kadm5_ad_connect(void *server_handle)
|
||||
lp = ldap_init(servers[i].server, servers[i].port);
|
||||
if (lp == NULL)
|
||||
continue;
|
||||
|
||||
|
||||
if (ldap_set_option(lp, LDAP_OPT_PROTOCOL_VERSION, &version)) {
|
||||
ldap_unbind(lp);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (ldap_set_option(lp, LDAP_OPT_REFERRALS, LDAP_OPT_OFF)) {
|
||||
ldap_unbind(lp);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_TSASL
|
||||
lret = ldap_tsasl_bind_s(lp, NULL, NULL, NULL, servers[i].server);
|
||||
|
||||
|
||||
#else
|
||||
lret = ldap_sasl_interactive_bind_s(lp, NULL, NULL, NULL, NULL,
|
||||
LDAP_SASL_QUIET,
|
||||
@@ -358,7 +358,7 @@ _kadm5_ad_connect(void *server_handle)
|
||||
int attrlen = 0;
|
||||
char **vals;
|
||||
int ret;
|
||||
|
||||
|
||||
laddattr(&attr, &attrlen, "defaultNamingContext");
|
||||
|
||||
ret = ldap_search_s(CTX2LP(context), "", LDAP_SCOPE_BASE,
|
||||
@@ -640,7 +640,7 @@ kadm5_ad_create_principal(void *server_handle,
|
||||
s[0] = '$';
|
||||
s[1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
short_spn = strdup(p);
|
||||
if (short_spn == NULL) {
|
||||
errno = ENOMEM;
|
||||
@@ -733,7 +733,7 @@ kadm5_ad_create_principal(void *server_handle,
|
||||
|
||||
} else {
|
||||
/* create user account */
|
||||
|
||||
|
||||
a = &rattrs[0];
|
||||
a->mod_op = LDAP_MOD_ADD;
|
||||
a->mod_type = "userAccountControl";
|
||||
|
@@ -67,22 +67,22 @@ change(void *server_handle,
|
||||
|
||||
num_keys = ent.entry.keys.len;
|
||||
keys = ent.entry.keys.val;
|
||||
|
||||
|
||||
ent.entry.keys.len = 0;
|
||||
ent.entry.keys.val = NULL;
|
||||
|
||||
|
||||
ret = _kadm5_set_keys(context, &ent.entry, password);
|
||||
if(ret) {
|
||||
_kadm5_free_keys (context->context, num_keys, keys);
|
||||
goto out2;
|
||||
}
|
||||
|
||||
|
||||
if (cond)
|
||||
existsp = _kadm5_exists_keys (ent.entry.keys.val,
|
||||
ent.entry.keys.len,
|
||||
keys, num_keys);
|
||||
_kadm5_free_keys (context->context, num_keys, keys);
|
||||
|
||||
|
||||
if (existsp) {
|
||||
ret = KADM5_PASS_REUSE;
|
||||
krb5_set_error_message(context->context, ret,
|
||||
|
@@ -87,27 +87,27 @@ find_db_spec(kadm5_server_context *ctx)
|
||||
ret = hdb_get_dbinfo(context, &info);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
d = NULL;
|
||||
while ((d = hdb_dbinfo_get_next(info, d)) != NULL) {
|
||||
const char *p = hdb_dbinfo_get_realm(context, d);
|
||||
|
||||
|
||||
/* match default (realm-less) */
|
||||
if(p != NULL && strcmp(ctx->config.realm, p) != 0)
|
||||
continue;
|
||||
|
||||
|
||||
p = hdb_dbinfo_get_dbname(context, d);
|
||||
if (p)
|
||||
ctx->config.dbname = strdup(p);
|
||||
|
||||
|
||||
p = hdb_dbinfo_get_acl_file(context, d);
|
||||
if (p)
|
||||
ctx->config.acl_file = strdup(p);
|
||||
|
||||
|
||||
p = hdb_dbinfo_get_mkey_file(context, d);
|
||||
if (p)
|
||||
ctx->config.stash_file = strdup(p);
|
||||
|
||||
|
||||
p = hdb_dbinfo_get_log_file(context, d);
|
||||
if (p)
|
||||
ctx->log_context.log_file = strdup(p);
|
||||
|
@@ -141,7 +141,7 @@ out:
|
||||
hdb_free_entry(context->context, &ent);
|
||||
return _kadm5_error_code(ret);
|
||||
}
|
||||
|
||||
|
||||
|
||||
kadm5_ret_t
|
||||
kadm5_s_create_principal(void *server_handle,
|
||||
|
@@ -72,7 +72,7 @@ print_keys(krb5_context context, Key *keys, size_t nkeys)
|
||||
if (keys[i].salt->salt.length)
|
||||
printf("%.*s", (int)keys[i].salt->salt.length,
|
||||
(char *)keys[i].salt->salt.data);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
printf("end keys:\n");
|
||||
|
@@ -103,7 +103,7 @@ perform_tl_data(krb5_context context,
|
||||
NULL);
|
||||
if (ret)
|
||||
return KADM5_BAD_TL_TYPE;
|
||||
|
||||
|
||||
ret = hdb_replace_extension(context, &ent->entry, &ext);
|
||||
free_HDB_extension(&ext);
|
||||
} else {
|
||||
|
@@ -152,7 +152,7 @@ kadm5_s_get_principal(void *server_handle,
|
||||
}
|
||||
#if 0 /* XXX implement */
|
||||
if(mask & KADM5_AUX_ATTRIBUTES)
|
||||
;
|
||||
;
|
||||
if(mask & KADM5_LAST_SUCCESS)
|
||||
;
|
||||
if(mask & KADM5_LAST_FAILED)
|
||||
|
@@ -500,7 +500,7 @@ kadm_connect(kadm5_client_context *ctx)
|
||||
p.realm = ctx->realm;
|
||||
}
|
||||
ret = _kadm5_marshal_params(context, &p, ¶ms);
|
||||
|
||||
|
||||
ret = krb5_write_priv_message(context, ctx->ac, &s, ¶ms);
|
||||
krb5_data_free(¶ms);
|
||||
if(ret) {
|
||||
|
@@ -1,35 +1,35 @@
|
||||
.\" $Id$
|
||||
.\"
|
||||
.\"
|
||||
.\" Copyright (c) 2005 - 2007 Kungliga Tekniska Högskolan
|
||||
.\" (Royal Institute of Technology, Stockholm, Sweden).
|
||||
.\" All rights reserved.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\"
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\"
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\"
|
||||
.\" 3. Neither the name of the Institute nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\" 3. Neither the name of the Institute nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id$
|
||||
.\"
|
||||
|
@@ -1,35 +1,35 @@
|
||||
.\" $Id$
|
||||
.\"
|
||||
.\"
|
||||
.\" Copyright (c) 2005 Kungliga Tekniska Högskolan
|
||||
.\" (Royal Institute of Technology, Stockholm, Sweden).
|
||||
.\" All rights reserved.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\"
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\"
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\"
|
||||
.\" 3. Neither the name of the Institute nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\" 3. Neither the name of the Institute nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 24, 2005
|
||||
.Dt IPROP 8
|
||||
@@ -176,7 +176,7 @@ like 5 min, 300 s, or simply a number of seconds.
|
||||
.Pa slave-stats
|
||||
in the database directory.
|
||||
.Sh SEE ALSO
|
||||
.Xr krb5.conf 5 ,
|
||||
.Xr krb5.conf 5 ,
|
||||
.Xr hprop 8 ,
|
||||
.Xr hpropd 8 ,
|
||||
.Xr iprop-log 8 ,
|
||||
|
@@ -577,7 +577,7 @@ process_msg (krb5_context context, slave *s, int log_fd,
|
||||
if (s->version == 0 && tmp != 0) {
|
||||
if (current_version < (uint32_t)tmp) {
|
||||
krb5_warnx (context, "Slave %s (version %lu) have later version "
|
||||
"the master (version %lu) OUT OF SYNC",
|
||||
"the master (version %lu) OUT OF SYNC",
|
||||
s->name, (unsigned long)tmp,
|
||||
(unsigned long)current_version);
|
||||
}
|
||||
@@ -698,7 +698,7 @@ write_stats(krb5_context context, slave *slaves, uint32_t current_version)
|
||||
rtbl_add_column_entry(tbl, SLAVE_ADDRESS, str);
|
||||
} else
|
||||
rtbl_add_column_entry(tbl, SLAVE_ADDRESS, "<unknown>");
|
||||
|
||||
|
||||
snprintf(str, sizeof(str), "%u", (unsigned)slaves->version);
|
||||
rtbl_add_column_entry(tbl, SLAVE_VERSION, str);
|
||||
|
||||
|
@@ -63,14 +63,14 @@ connect_to_master (krb5_context context, const char *master,
|
||||
|
||||
error = getaddrinfo (master, port_str, &hints, &ai);
|
||||
if (error) {
|
||||
krb5_warnx(context, "Failed to get address of to %s: %s",
|
||||
krb5_warnx(context, "Failed to get address of to %s: %s",
|
||||
master, gai_strerror(error));
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (a = ai; a != NULL; a = a->ai_next) {
|
||||
char node[NI_MAXHOST];
|
||||
error = getnameinfo(a->ai_addr, a->ai_addrlen,
|
||||
error = getnameinfo(a->ai_addr, a->ai_addrlen,
|
||||
node, sizeof(node), NULL, 0, NI_NUMERICHOST);
|
||||
if (error)
|
||||
strlcpy(node, "[unknown-addr]", sizeof(node));
|
||||
@@ -743,6 +743,6 @@ main(int argc, char **argv)
|
||||
else
|
||||
krb5_warnx(context, "%s unexpected exit reason: %ld",
|
||||
getprogname(), (long)exit_flag);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -308,7 +308,7 @@ _kadm5_marshal_params(krb5_context context,
|
||||
krb5_storage *sp = krb5_storage_emem();
|
||||
|
||||
krb5_store_int32(sp, params->mask & (KADM5_CONFIG_REALM));
|
||||
|
||||
|
||||
if(params->mask & KADM5_CONFIG_REALM)
|
||||
krb5_store_string(sp, params->realm);
|
||||
krb5_storage_to_data(sp, out);
|
||||
@@ -334,7 +334,7 @@ _kadm5_unmarshal_params(krb5_context context,
|
||||
if (ret)
|
||||
goto out;
|
||||
params->mask = mask;
|
||||
|
||||
|
||||
if(params->mask & KADM5_CONFIG_REALM)
|
||||
ret = krb5_ret_string(sp, ¶ms->realm);
|
||||
out:
|
||||
|
@@ -507,7 +507,7 @@ kadm5_check_password_quality (krb5_context context,
|
||||
if (msg)
|
||||
krb5_set_error_message(context, 0, "(old) password policy "
|
||||
"failed with %s", msg);
|
||||
|
||||
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user