Subject: GOSa fails to add IP and MAC addresses to samba created hosts Package: gosa Version: 2.5.16.1-4.1 Severity: important Tags: patch
When trying to add MAC and IP information to Samba host an LDAP error occurs (account/inetOrgPerson conflict) Steps to reproduce: Install samba, gosa and ldap Configure samba as a PDC with ldap backend Join computer to domain Go to gosa web interface try to add IP and MAC information to newly added host. Cause: OpenLDAP enforces schema files without a way to bypass, gosa depends on lack of enforecement Solution: (haven't checked if it is forward compatible with new versions of GOSa) Add new schema to gosa+samba3.schema specific to samba hosts: objectclass ( 1.3.6.1.4.1.10098.1.2.1.19.19 NAME 'gosaSambaHost' SUP top AUXILIARY DESC 'Objectclass for GOSa-Samba host accounts' MUST ( macAddress ) MAY ( ipHostNumber )) Change code adding entries to LDAP so that it doesn't use mutually exclusive classes and uses newly created class (file plugins/admin/systems/class_winGeneric.inc): var $objectclasses= array("account", "posixAccount","gosaAccount", "gosaSambaHost","shadowAccount","sambaSamAccount","top"); -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gosa depends on: ii apache2 2.2.9-10+lenny7 Apache HTTP Server metapackage ii apache2-mpm-pre 2.2.9-10+lenny7 Apache HTTP Server - traditional n ii exim4 4.69-9 metapackage to ease Exim MTA (v4) ii exim4-daemon-li 4.69-9 lightweight Exim MTA (v4) daemon ii fping 2.4b2-to-ipv6-15 sends ICMP ECHO_REQUEST packets to ii imagemagick 7:6.3.7.9.dfsg2-1~lenny3 image manipulation programs ii libcrypt-smbhas 0.12-2 generate LM/NT hash of a password ii php5 5.2.6.dfsg.1-1+lenny8 server-side, HTML-embedded scripti ii php5-cli 5.2.6.dfsg.1-1+lenny8 command-line interpreter for the p ii php5-gd 5.2.6.dfsg.1-1+lenny8 GD module for php5 ii php5-imap 5.2.6.dfsg.1-1+lenny8 IMAP module for php5 ii php5-ldap 5.2.6.dfsg.1-1+lenny8 LDAP module for php5 ii php5-mhash 5.2.6.dfsg.1-1+lenny8 MHASH module for php5 ii php5-mysql 5.2.6.dfsg.1-1+lenny8 MySQL module for php5 ii php5-recode 5.2.6.dfsg.1-1+lenny8 recode module for php5 ii smarty 2.6.20-1.2 Template engine for PHP ii smarty-gettext 1.0b1-2 provides gettext support for smart ii wwwconfig-commo 0.1.2 Debian web auto configuration gosa recommends no packages. Versions of packages gosa suggests: pn cyrus22-imapd <none> (no description available) pn etherwake <none> (no description available) ii gosa-schema 2.5.16.1-4.1 LDAP schema for GOsa pn postfix-ldap <none> (no description available) ii slapd 2.4.11-1+lenny1 OpenLDAP server (slapd) -- no debconf information -- Hubert Kario QBS - Quality Business Software 02-656 Warszawa, ul. Ksawerów 30/85 tel. +48 (22) 646-61-51, 646-74-24 www.qbs.com.pl System Zarządzania Jakością zgodny z normą ISO 9001:2000 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org