Example group creation

This commit is contained in:
Jamie Cameron
2008-03-01 19:09:34 +00:00
parent e76965e9ce
commit 50a6e4f98c
4 changed files with 12 additions and 0 deletions

View File

@ -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.

View File

@ -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";

View File

@ -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();

View File

@ -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