mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +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
|
_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
|
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
|
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
|
--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
|
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
|
\fB\-I\fR
|
||||||
option for details.
|
option for details.
|
||||||
Defaults to a starting point of 1.
|
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
|
.TP 12n
|
||||||
\fB\-o\fR \fIoutput_file\fR, \fB\--output\fR=\fIoutput_file\fR
|
\fB\-o\fR \fIoutput_file\fR, \fB\--output\fR=\fIoutput_file\fR
|
||||||
Write the converted output to
|
Write the converted output to
|
||||||
|
@ -137,6 +137,8 @@ see the
|
|||||||
.Fl I
|
.Fl I
|
||||||
option for details.
|
option for details.
|
||||||
Defaults to a starting point of 1.
|
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
|
.It Fl o Ar output_file , Fl -output Ns = Ns Ar output_file
|
||||||
Write the converted output to
|
Write the converted output to
|
||||||
.Ar output_file .
|
.Ar output_file .
|
||||||
|
@ -178,7 +178,7 @@ main(int argc, char *argv[])
|
|||||||
output_file = optarg;
|
output_file = optarg;
|
||||||
break;
|
break;
|
||||||
case 'O':
|
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) {
|
if (errstr != NULL) {
|
||||||
sudo_warnx(U_("starting order: %s: %s"), optarg, U_(errstr));
|
sudo_warnx(U_("starting order: %s: %s"), optarg, U_(errstr));
|
||||||
usage(1);
|
usage(1);
|
||||||
|
@ -445,8 +445,10 @@ print_userspec_ldif(FILE *fp, struct userspec *us, struct cvtsudoers_config *con
|
|||||||
|
|
||||||
print_cmndspec_ldif(fp, cs, &next, &priv->defaults);
|
print_cmndspec_ldif(fp, cs, &next, &priv->defaults);
|
||||||
|
|
||||||
fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
|
if (conf->sudo_order != 0) {
|
||||||
conf->sudo_order += conf->order_increment;
|
fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
|
||||||
|
conf->sudo_order += conf->order_increment;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user