[Samba-it] samba + ldap & smbldaptools

Riccardo Gaggero riccardo.gaggero at sogefifiltration.it
Thu May 12 11:38:01 MDT 2005


rieccomi qui
sto diventato deficente a far funzionare debian/ldap/samba/smbldap-tools
dopo un primo successo non sono riuscito a replicare il tutto su un altra
macchina per motivi di PERL!!!
se provo ad a fare l'aggiornamento del cpan per poter poi installare il
moduli necessari agli scrip della idealx non ci esco fuori
non vi dico esattamente i problemi (errori su varie dipendenze o di
aggironamenti gia fatti )
io eseguo queste procedure con sarge minamle:
apt-get install make gcc

Installare i moduli perl aggiuntivi

perl -MCPAN -e shell

Are you ready for manual configuration? [yes] N

install Net::LDAP

install Crypt::SmbHash

install IO-Socket-SSL

confermando l'installazuione dei prerequisiti

sbaglio qualcosa???

per caso Mauro Colorio può darmi un supporto MINIMALE????

grazie



p.s.

ma in debian DEVO per forza fare l'aggiornamento cpan???

ho notato che in ubuntu se installo smbldap-tools mi scarica anche MOOOLTI
altri moduli perl

#apt-get install smbldap-tools

The following extra packages will be installed:

libconvert-asn1-perl libcrypt-smbhash-perl libdigest-md4-perl

libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl

libio-socket-ssl-perl libnet-ldap-perl libnet-ssleay-perl liburi-perl

libwww-perl openssl

Suggested packages:

libxml-parser-perl libauthen-sasl-perl libxml-sax-perl ca-certificates

Recommended packages:

libmailtools-perl libhtml-format-perl libcompress-zlib-perl

The following NEW packages will be installed:

libconvert-asn1-perl libcrypt-smbhash-perl libdigest-md4-perl

libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl

libio-socket-ssl-perl libnet-ldap-perl libnet-ssleay-perl liburi-perl

libwww-perl openssl smbldap-tools

0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.

Need to get 2506kB of archives.

After unpacking 7528kB of additional disk space will be used.

Do you want to continue [Y/n]?

non dovrebbe essere gia sufficente cio????

stesse cose fatte anche la woody e la ubuntu.....problemi similari

grazie a tutti

----- Original Message ----- 

From: "Mauro Colorio" <linuxbox at interfree.it>
To: <samba-it at xsec.it>
Sent: Tuesday, May 10, 2005 6:21 PM
Subject: [Samba-it] samba + ldap & smbldaptools


> ciao a tutti
>
> ho un problema con smbldap-useradd,
> ho configurato samba e ldap su debian sarge,
> smbldap-populate ha funzionato e mi ritrovo il db ldap con i dato corretti
> se faccio un ldapsearch trovo i dati corretti.
>
> in /etc/smbldap-tools/smbldap.conf
>
>
> # Where are stored Users
> usersdn="ou=Users,${suffix}"
>
> # Where are stored Computers
> computersdn="ou=Computers,${suffix}"
>
> # Where are stored Groups
> groupsdn="ou=Groups,${suffix}"
>
>
> # Default User (POSIX and Samba) GID
> defaultUserGid="513"
>
> quando provo a fare un
>
> smbldap-useradd -a -m provautente ricevo questo errore
>
> Can't call method "get_value" on an undefined value at
> /usr/sbin/smbldap-useradd line 170, <DATA> line 283.
> alla riga 170 di quel file ho
>
>   $userGroupSID = $group_entry->get_value('sambaSID');
>
>
> se controllo nel db ldap trovo:
>
> dn: cn=Domain Users,ou=Groups,dc=mydomain,dc=org
> objectClass: posixGroup
> objectClass: sambaGroupMapping
> gidNumber: 513
> cn: Domain Users
> description: Netbios Domain Users
> sambaSID: S-1-5-21-1373412490-3817512529-4021492068-513
> sambaGroupType: 2
> displayName: Domain Users
>
>
> quindi tutti i dati ci sono.. non riesco a capire dov'e' l'errore,
> qualche idea?
>
> ciao
> Mauro
>
>
> smb.conf:
> # Global parameters
> [global]
>         workgroup = DOMINIO
>         netbios name = PDC
>         #interfaces = 192.168.5.11
>         username map = /etc/samba/smbusers
>         enable privileges = yes
>         server string = Samba Server %v
>         security = user
>         encrypt passwords = Yes
>         min passwd length = 3
>         obey pam restrictions = No
>         ldap passwd sync = Yes
>         ldap passwd sync = Yes
>         log level = 0
>         syslog = 0
>         log file = /var/log/samba/log.%m
>         max log size = 100000
>         time server = Yes
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>         mangling method = hash2
>         Dos charset = 850
>         Unix charset = ISO8859-1
>
>         logon script = logon.bat
>         logon drive = H:
>         logon home =
>         logon path =
>
>         domain logons = Yes
>         os level = 65
>         preferred master = Yes
>         domain master = Yes
>         wins support = Yes
>         passdb backend = ldapsam:ldap://127.0.0.1/
>         ldap admin dn = cn=admin,dc=mydomain,dc=org
>         ldap suffix = dc=mydomain,dc=org
>         ldap group suffix = ou=Groups
>         ldap user suffix = ou=Users
>         ldap machine suffix = ou=Computers
>         ldap idmap suffix = ou=Users
>
>         add user script = /usr/sbin/smbldap-useradd -m "%u"
>         ldap delete dn = Yes
>         delete user script = /usr/sbin/smbldap-userdel "%u"
>         set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
>
>
>
> _______________________________________________
> Samba-it mailing list
> Samba-it at xsec.it
> https://lists.xsec.it/mailman/listinfo/samba-it
>




More information about the samba-it mailing list