[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: objectclass sambaSamAccount



Anyone see this before while trying to cpan install Unicode::MapUTF8?

I cannot use the smbldap without it

Thanks


t/unistr......ok


Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/map8.t 0 11 ?? ?? % ??
Failed 1/4 test scripts, 75.00% okay. 0/6 subtests failed, 100.00% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Running make for S/SN/SNOWHARE/Unicode-MapUTF8-1.11.tar.gz
Is already unwrapped into directory /root/.cpan/build/Unicode-MapUTF8-1.11


  CPAN.pm: Going to build S/SN/SNOWHARE/Unicode-MapUTF8-1.11.tar.gz

cp lib/Unicode/MapUTF8.pod blib/lib/Unicode/MapUTF8.pod
cp lib/Unicode/MapUTF8.pm blib/lib/Unicode/MapUTF8.pm
Manifying blib/man3/Unicode::MapUTF8.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_unicode_maputf8....Can't locate Unicode/Map8.pm in @INC (@INC contains: ./blib ../blib ../lib ./lib /root/.cpan/build/Unicode-MapUTF8-1.11/blib/lib /root/.cpan/build/Unicode-MapUTF8-1.11/blib/arch /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at lib/Unicode/MapUTF8.pm line 7.
BEGIN failed--compilation aborted at lib/Unicode/MapUTF8.pm line 7.
Compilation failed in require at t/01_unicode_maputf8.t line 6.
BEGIN failed--compilation aborted at t/01_unicode_maputf8.t line 6.
t/01_unicode_maputf8....dubious


Test returned status 2 (wstat 512, 0x200)
t/97_distribution.......skipped
all skipped: Test::Distribution not installed
t/98_pod_coverage.......skipped
all skipped: Test::Pod::Coverage 1.06 required for testing POD coverage
t/99_pod................ok


Failed Test            Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/01_unicode_maputf8.t    2   512    ??   ??       %  ??
2 tests skipped.
Failed 1/4 test scripts, 75.00% okay. 0/2 subtests failed, 100.00% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

Buchan Milne wrote:
On Tuesday 02 September 2008 15:47:53 Laurence Mayer wrote:
Hi,

OS: Linux Redhat x86_64
OpenLdap 2.3.27

Add the EPEL repository, and 'yum install smbldap-tools'.

I am trying to add an objectclass sambaSamAccount to my ou=People.
My goal would be to have both samba and posix account for each user.

In most cases, the Posix attributes are a requirement in any case ...

I have included the samba schema to the slapd.conf file.

I tried adding this to a file and running ldapadd:

dn: uid=laurence, ou=People,dc=istraresearch,dc=com
sambaLogonTime: 0
displayName: Laurence Mayer
sambaLMPassword: xxxxx
sambaPrimaryGroupSID: S-1-5-21-2447931902-1787058256-3961074038-1201
objectClass: sambaSamAccount
sambaAcctFlags: [UX         ]
gidNumber: 100
sambaKickoffTime: 2147483647
sambaPwdLastSet: 1010179230
sambaSID: S-1-5-21-2447931902-1787058256-3961074038-5004
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
sambaNTPassword: xxxx

You really shouldn't be typing so much in manually ....

However I received the error:
adding new entry "uid=laurence, ou=People,dc=istraresearch,dc=com"
ldap_add: Internal (implementation specific) error (80)
	additional info: no structuralObjectClass operational attribute

You only have one objectclass in the entry above, and it is not a structural objectclass, but an auxiliary one. You should add a structural objectclass


The conventional one (and that used by smbldap-tools) is inetOrgPerson.

Regards,
Buchan

-- -------------------------- Laurence Mayer Director of Operations & IT Istra Research Ltd. Tel: +972545233107 Fax: +972722765124