mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Setting a sudoOrder start point of 0 will disable creation of
sudoOrder attributes in the resulting LDIF output.
This commit is contained in:
parent
111d79b53c
commit
b3a0c3272b
@ -93,7 +93,9 @@ DDEESSCCRRIIPPTTIIOONN
|
||||
_s_t_a_r_t___p_o_i_n_t in the sudoOrder attribute of the first sudoRole
|
||||
object. Subsequent sudoRole object use a sudoOrder value
|
||||
generated by adding an _i_n_c_r_e_m_e_n_t, see the --II option for
|
||||
details. Defaults to a starting point of 1.
|
||||
details. Defaults to a starting point of 1. A starting
|
||||
point of 0 will disable the generation of sudoOrder
|
||||
attributes in the resulting LDIF file.
|
||||
|
||||
--oo _o_u_t_p_u_t___f_i_l_e, ----oouuttppuutt=_o_u_t_p_u_t___f_i_l_e
|
||||
Write the converted output to _o_u_t_p_u_t___f_i_l_e. If no _o_u_t_p_u_t___f_i_l_e
|
||||
|
@ -172,6 +172,8 @@ see the
|
||||
\fB\-I\fR
|
||||
option for details.
|
||||
Defaults to a starting point of 1.
|
||||
A starting point of 0 will disable the generation of sudoOrder
|
||||
attributes in the resulting LDIF file.
|
||||
.TP 12n
|
||||
\fB\-o\fR \fIoutput_file\fR, \fB\--output\fR=\fIoutput_file\fR
|
||||
Write the converted output to
|
||||
|
@ -137,6 +137,8 @@ see the
|
||||
.Fl I
|
||||
option for details.
|
||||
Defaults to a starting point of 1.
|
||||
A starting point of 0 will disable the generation of sudoOrder
|
||||
attributes in the resulting LDIF file.
|
||||
.It Fl o Ar output_file , Fl -output Ns = Ns Ar output_file
|
||||
Write the converted output to
|
||||
.Ar output_file .
|
||||
|
@ -178,7 +178,7 @@ main(int argc, char *argv[])
|
||||
output_file = optarg;
|
||||
break;
|
||||
case 'O':
|
||||
conf->sudo_order = sudo_strtonum(optarg, 1, UINT_MAX, &errstr);
|
||||
conf->sudo_order = sudo_strtonum(optarg, 0, UINT_MAX, &errstr);
|
||||
if (errstr != NULL) {
|
||||
sudo_warnx(U_("starting order: %s: %s"), optarg, U_(errstr));
|
||||
usage(1);
|
||||
|
@ -445,10 +445,12 @@ print_userspec_ldif(FILE *fp, struct userspec *us, struct cvtsudoers_config *con
|
||||
|
||||
print_cmndspec_ldif(fp, cs, &next, &priv->defaults);
|
||||
|
||||
if (conf->sudo_order != 0) {
|
||||
fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
|
||||
conf->sudo_order += conf->order_increment;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
debug_return_bool(!ferror(fp));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user