sudoOrder attributes in the resulting LDIF output.
_\bs_\bt_\ba_\br_\bt_\b__\bp_\bo_\bi_\bn_\bt in the sudoOrder attribute of the first sudoRole
object. Subsequent sudoRole object use a sudoOrder value
generated by adding an _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt, see the -\b-I\bI 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.
-\b-o\bo _\bo_\bu_\bt_\bp_\bu_\bt_\b__\bf_\bi_\bl_\be, -\b--\b-o\bou\but\btp\bpu\but\bt=_\bo_\bu_\bt_\bp_\bu_\bt_\b__\bf_\bi_\bl_\be
Write the converted output to _\bo_\bu_\bt_\bp_\bu_\bt_\b__\bf_\bi_\bl_\be. If no _\bo_\bu_\bt_\bp_\bu_\bt_\b__\bf_\bi_\bl_\be
\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
.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 .
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);
print_cmndspec_ldif(fp, cs, &next, &priv->defaults);
- fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
- conf->sudo_order += conf->order_increment;
+ if (conf->sudo_order != 0) {
+ fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
+ conf->sudo_order += conf->order_increment;
+ }
}
}