Samba4/HOWTO--> Step 4: provision Samba4 Problem

Julien Kerihuel j.kerihuel at
Wed Sep 17 12:28:28 GMT 2008

On Wed, 2008-09-17 at 14:06 +0200, mustafa.evelioglu wrote:
> Help SOS,
> Im trying to install Samba 4 on a Debian System. Because I need it for
> my Study.
> I tried to install like in Samba4/Howto.
> But after I had ran Step 4 provision:
> ./setup/provision --realm=YOUR.REALM --domain=YOURDOM
> --adminpass=SOMEPASSWORD --server-role='domain controller'
> I got :
> Traceback (most recent call last):
>   File "./setup/provision", line 158, in ?
>     ldap_backend_type=opts.ldap_backend_type)
>   File "bin/python/samba/", line 959, in provision
>     hostip = socket.getaddrinfo(names.hostname, None, socket.AF_INET,
> socket.AI_CANONNAME, socket.IPPROTO_IP)[0][-1][0]
> socket.gaierror: (-2, 'Name or service not known')

Hi Mustafa,

I think your hostname can't be resolved. A temporary solution would be
to add it to /etc/hosts. Otherwise, you need to point
your /etc/resolv.conf to some DNS able to resolve your computer

Hope it helps,

Julien Kerihuel
j.kerihuel at
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list