mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Example group creation
This commit is contained in:
@ -1,2 +1,4 @@
|
||||
---- Changes since 1.380 ----
|
||||
First version of this module, for configuring the OpenLDAP server and managing its database.
|
||||
---- Changes since 1.400 ----
|
||||
Added an option to create an example LDAP group, and made the example user a person.
|
||||
|
@ -80,6 +80,14 @@ if ($ok && $in{'example'}) {
|
||||
"mailForwardingAddress", "example\@somewhere.com",
|
||||
"objectClass", [ "top" ] );
|
||||
}
|
||||
elsif ($in{'example'} == 4) {
|
||||
# Unix group
|
||||
$edn = "cn=example, ".$dn;
|
||||
@attrs = ( "cn", "example",
|
||||
"gidNumber", 9999,
|
||||
"memberUid", "example",
|
||||
"objectClass", [ "posixGroup" ] );
|
||||
}
|
||||
|
||||
print &text('create_doingex',
|
||||
"<tt>".&html_escape($edn)."</tt>"),"<br>\n";
|
||||
|
@ -27,6 +27,7 @@ print &ui_table_row($text{'create_example'},
|
||||
[ [ 0, $text{'no'} ],
|
||||
[ 1, $text{'create_unix'} ],
|
||||
[ 2, $text{'create_mail'} ],
|
||||
[ 4, $text{'create_group'} ],
|
||||
[ 3, $text{'create_virt'} ] ]));
|
||||
|
||||
print &ui_table_end();
|
||||
|
@ -186,6 +186,7 @@ create_example=Create example object under new DN?
|
||||
create_unix=Unix user
|
||||
create_mail=Unix user with mail
|
||||
create_virt=Address mapping
|
||||
create_group=Unix group
|
||||
create_edom=Missing or invalid domain name
|
||||
create_edn=Missing or invalid distinguished name
|
||||
create_err=Failed to create new tree
|
||||
|
Reference in New Issue
Block a user