summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f1f63c)
raw | patch | inline | side by side (parent: 5f1f63c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jul 2007 07:19:05 +0000 (07:19 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jul 2007 07:19:05 +0000 (07:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6840 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Migrate.inc | patch | blob | history |
index 15df31eddf43e832923c065455b1919790a598a7..05954715014de87bbc5cd21fbd393dd7181419f1 100644 (file)
if(!in_array($object_attrs['uid'][0],$attrs_admin_group_new['memberUid'])){
$attrs_admin_group_new['memberUid'][] = $object_attrs['uid'][0];
}
+ if ($cv['rfc2307bis']){
+ $attrs_admin_group_new['member'][] = $dn;
+ }
if($only_ldif){
$this->acl_create_changes = _("Appending user to group administrational group:")." \n";
}
}
- }else{
+ } else {
$group_ou = trim($cv['groupou']);
if(!empty($group_ou)){
}
$new_group_dn = "cn=GOsa Administrators,".$group_ou.$cv['base'];
- $new_group_attrs['objectClass'] = array("gosaObject","posixGroup");
+ if ($cv['rfc2307bis']){
+ $new_group_attrs['objectClass'] = array("gosaObject","posixGroup", "groupOfNames");
+ $new_group_attrs['member'][] = $dn;
+ } else {
+ $new_group_attrs['objectClass'] = array("gosaObject","posixGroup");
+ }
$new_group_attrs['cn'] = "GOsa Administrators";
$new_group_attrs['gosaSubtreeACL'] = ":all";
$new_group_attrs['gidNumber'] = "999";
$ldap->cd($dn);
$res = $ldap->add($new_user);
$this->acl_create_selected = $dn;
- $this->create_admin();
+ $this->create_admin(FALSE, $dn);
if(!$res){
print_red($ldap->get_error());
}
}
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+//vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>