On Thu, May 19, 2005 at 11:26:34PM +0200, Roland Gruber wrote:
> Hi Uwe,
> 
> Uwe Steinmann schrieb:
> > I copied samba.schema into /etc/ldap/schema, included the file
> > in /etc/ldap/slapd.conf, set the loglevel to 256 and restarted
> > slapd. The result is still the same.
> > Here is the contents of the array $attr which is passed as the
> > third parameter to the failing ldap_modify()
> > 
> > Array ( [objectClass] => Array ( [0] => posixAccount [1] =>
> > shadowAccount [2] => inetOrgPerson [3] => sambaAccount ) [cn] => steinm
> > [...] 
> > And here ist the output of slapd from syslog:
> > 
> > May 19 21:17:28 localhost slapd[7399]: conn=1 op=2 ADD
> > dn="uid=steinm,ou=People,dc=steinmann,dc=cx"
> > May 19 21:17:28 localhost slapd[7399]: conn=1 op=2 RESULT tag=105 err=21
> > text=objectClass: value #3 invalid per syntax
> 
> looks like you selected to use the Samba 2 schema in your LAM
> configuration (because of sambaAccount instead of sambaSamAccount).
> If you just copied the file from the Samba sources then all Samba 2
> parts are commented. You have to remove the comments or select the Samba
> 3 schema in your LAM configuration.
I selected the Samba 3 schema and it finally worked.

> Concerning your other mail:
> 
> It is impossible for LAM to depend on Samba or install the schema file
> with the package. The first reason is that LAM does not depend on a
> local installation of OpenLDAP, you can have your server anywhere in the
> network. The other reason is that you might use some other
> implementation (e.g. Novell eDirectory).
Fair point, I didn't consider it, though I use ldap servers in the
network all the time.

> The package description tells you that the Samba schema is used and
> there is also a note in the Readme.Debian.
May be a good idea to also add a note about where to get the
samba.schema and to either uncomment the samba 2 schema or select
samba 3 schema in lam.

Thanks for your help.

  Uwe

-- 
  MMK GmbH, Universitaetsstr. 11, 58097 Hagen
  [EMAIL PROTECTED]
  Tel: +2331 840446    Fax: +2331 843920

Attachment: signature.asc
Description: Digital signature

Reply via email to