samba-tool domain provision

1. samba-tool domain provision

Antonio Amazonas
antonioamazonas

(usa Debian)

Enviado em 06/09/2015 - 15:07h

Olá a todos, estou fazendo um trabalho de faculdade, onde eu preciso criar um PDC em linux (debian ou ubuntu) estou usando o ubuntu server 14 em uma vm.
Preciso criar um PDC em linux, e um BDC microsoft ( server 2008 r2)
Instalei o samba 4, e no momento da promoção do DC Linux, o sistema me retorna uma mensagem de erro e eu não faço a minima ideia de como resolver.
Sou iniciante no MUITIVERSO LINUX, e por isso peço ajuda.


O processo segue ate me pedir a senha de administrador do Samba
e logo depois começam as mensagens de erro:

ldb: module schema_load initalization falied : no such object
ldb: module rootdse inicialization falied : no such object
ldb: module samba_dsdb initialization falied : no such object
ldb: Unable to load modules fot /var/lib/samba/private/sam.ldb: (null)
samdb_conect falied
VFS connect falied!

ERROR (<class ´samba.provision.ProvisioningError´>): Provission falied - ProvisioningError: Your filesystem or build does nt suporte posix ACLs, which s3fs requires. Try monting the filesystem whitthe ácl´option.
File "usr/lib/python2.7/dist-packges/samba/netcmd/domain.py", line 398, in run
use_rfc2307=use_rfc2307, ski´p_sysvolacl=False)
File "/usr/lib/python2.7/dist-packages/samba/provision/_init_.py", line 2052, in provision
raise provisonoingError("Your filesystem or build does not suport posix ACLs, which s3fs requiroes. Try the monting the filesystem whit the 'acl'options.

Tentei anexar um print com a mensagem de erros mas não consegui.
O que pode ser isso, alguem pode me ajudar no procedimento de trasformar esse pc em um pdc?
Muito obrigado


  


2. Re: samba-tool domain provision

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 08/09/2015 - 08:36h

Antes de você compilar o SAMBA4, todas as dependências foram satisfeita? No site oficial do samba, https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs, você pode ver as depend&#7869;ncias necessárias.

Veja também https://wiki.samba.org/index.php/Operating_system_requirements/File_system_support

A senha usada para o provisionamento é uma senha forte com pelo menos uma letra maíscula, caracteres especiais e números. Caso não seja uma senha forte, vai haver problemas.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



3. Re: samba-tool domain provision

Antonio Amazonas
antonioamazonas

(usa Debian)

Enviado em 12/09/2015 - 17:46h

K666 escreveu:

Antes de você compilar o SAMBA4, todas as dependências foram satisfeita? No site oficial do samba, https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs, você pode ver as depend&#7869;ncias necessárias.

Veja também https://wiki.samba.org/index.php/Operating_system_requirements/File_system_support

A senha usada para o provisionamento é uma senha forte com pelo menos uma letra maíscula, caracteres especiais e números. Caso não seja uma senha forte, vai haver problemas.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



Meu caro boa tarde, obrigado pela dica, segui as informações e instalei as dependências.
Me tire mais uma dúvida no momento de promover o servidor para DC, com o comando "samba-tool domain provision" ele me pede

Realm : qual informação coloco aqui?
depois ele pede o nome do domínio. e vou colocando com as informações que quedo definir no sistema, mas em relação a o dns interno
DNS BACKEND eu escolhi o [SAMBA INTERNAL]
e é me sugerido um endereço de ip, eu deixo o sugerido pelo samba, ou preciso informar outro ja que o servidor tem um ip diferente pelo sugerido pelo amba, ex:

servidor tem o IP 192.168.77.128
O IP sugerido pelo samba é 192.168.77.2, como devo proceder nessas duas situações?
Muito obrigado.








4. Re: samba-tool domain provision

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 14/09/2015 - 23:10h

Boa noite.

Prezado, seguem alguns vídeos elucidativos a respeito do tema:

https://www.youtube.com/user/projetoroot/search?query=samba4
https://www.youtube.com/watch?v=a31Gw5vDFKg
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



5. Outra dúvida

Antonio Amazonas
antonioamazonas

(usa Debian)

Enviado em 24/09/2015 - 13:45h

K666 escreveu:

Boa noite.

Prezado, seguem alguns vídeos elucidativos a respeito do tema:

https://www.youtube.com/user/projetoroot/search?query=samba4
https://www.youtube.com/watch?v=a31Gw5vDFKg
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



Prezados boa tarde, consegui instalar as dependências no Debian 8.2 para a configuração do linux. Eu mudei a v.m. de ubuntu para debian.
Baixei o samba 4.3 e segundo o tutorial que estava seguindo, executei o script:
./samba4.3/configure, o script executei normalmente, mas no final ele me retorna um erro relacionado ao LDAP.
Lembrando que eu tentei instalar com os comandos:

apt-get update
apt-get install slapd ldap-utils
mas não consigo instalar, o sistema informa que não conseguiu localizar os pacotes
Muito Obrigado mesmo!



Login as: antonioamazonas
antonioamazonas@10.0.0.108's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Sep 24 01:18:32 2015

antonioamazonas@pdc-debian:~$ su
Senha:

root@pdc-debian:/home/antonioamazonas# cd /samba-4.3.0
root@pdc-debian:/samba-4.3.0# . configure
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for program git : not found
Check for -MD : yes
Checking for program gdb : /usr/bin/gdb
Checking build system : Linux pdc-debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
Checking for header sys/utsname.h : yes
Checking uname sysname type : Linux
Checking uname machine type : i686
Checking uname release type : 3.16.0-4-686-pae
Checking uname version type : #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19)
Checking for header stdio.h : yes
Checking simple C program : ok
Checking compiler accepts ['-Werror'] : yes
Checking linker accepts ['-Wl,-rpath,.'] : yes
Checking for rpath library support : ok
Checking for -Wl,--version-script support : ok
Checking compiler accepts ['-fvisibility=hidden', '-Werror'] : yes
Checking for HAVE_VISIBILITY_ATTR : ok
Checking compiler accepts -fPIC : yes
Checking for inline : inline
Checking for pkg-config version >= 0.0.0 : yes
Checking compiler accepts [''] : yes
Checking for header sys/types.h : yes
Checking for header sys/stat.h : yes
Checking for header stdlib.h : yes
Checking for header stddef.h : yes
Checking for header memory.h : yes
Checking for header string.h : yes
Checking for header strings.h : yes
Checking for header inttypes.h : yes
Checking for header stdint.h : yes
Checking for header unistd.h : yes
Checking for header minix/config.h : no
Checking for header ctype.h : yes
Checking for header standards.h : no
Checking for header stdbool.h : yes
Checking for header stdarg.h : yes
Checking for header vararg.h : no
Checking for header limits.h : yes
Checking for header assert.h : yes
Checking getconf LFS_CFLAGS : -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Checking getconf large file support flags work : ok
Checking for large file support without additional flags : ok
Checking for header sys/time.h : yes
Checking for header time.h : yes
Checking for header endian.h : yes
Checking for header sys/endian.h : no
Checking for HAVE_LITTLE_ENDIAN : ok
Checking for HAVE_BIG_ENDIAN : not found
Checking for header signal.h : yes
Checking if signal handlers return int : not found
Checking for variable __FUNCTION__ : ok
Checking for va_copy : ok
Checking for HAVE__VA_ARGS__MACRO : ok
Checking for header linux/types.h : yes
Checking for header crypt.h : yes
Checking for header locale.h : yes
Checking for header acl/libacl.h : yes
Checking for header compat.h : no
Checking for header attr/xattr.h : yes
Checking for header dustat.h : no
Checking for header fcntl.h : yes
Checking for header fnmatch.h : yes
Checking for header glob.h : yes
Checking for header history.h : no
Checking for header krb5.h : yes
Checking for header langinfo.h : yes
Checking for header libaio.h : no
Checking for header ndir.h : no
Checking for header pwd.h : yes
Checking for header shadow.h : yes
Checking for header sys/acl.h : yes
Checking for header sys/attributes.h : no
Checking for header attr/attributes.h : yes
Checking for header sys/capability.h : no
Checking for header sys/dir.h : yes
Checking for header sys/epoll.h : yes
Checking for header port.h : no
Checking for header sys/fcntl.h : yes
Checking for header sys/filio.h : no
Checking for header sys/filsys.h : no
Checking for header sys/fs/s5param.h : no
Checking for header sys/fs/vx/quota.h : no
Checking for header sys/id.h : no
Checking for header sys/ioctl.h : yes
Checking for header sys/ipc.h : yes
Checking for header sys/mman.h : yes
Checking for header sys/mode.h : no
Checking for header sys/ndir.h : no
Checking for header sys/priv.h : no
Checking for header sys/resource.h : yes
Checking for header sys/security.h : no
Checking for header sys/shm.h : yes
Checking for header sys/statfs.h : yes
Checking for header sys/statvfs.h : yes
Checking for header sys/termio.h : no
Checking for header sys/vfs.h : yes
Checking for header sys/xattr.h : yes
Checking for header termio.h : yes
Checking for header termios.h : yes
Checking for header sys/file.h : yes
Checking for header sys/ucontext.h : yes
Checking for header sys/wait.h : yes
Checking for header malloc.h : yes
Checking for header grp.h : yes
Checking for header sys/select.h : yes
Checking for header setjmp.h : yes
Checking for header utime.h : yes
Checking for header sys/syslog.h : yes
Checking for header syslog.h : yes
Checking for header sys/mount.h : yes
Checking for header mntent.h : yes
Checking for header stropts.h : yes
Checking for header unix.h : no
Checking for header sys/param.h : yes
Checking for header sys/socket.h : yes
Checking for header netinet/in.h : yes
Checking for header netdb.h : yes
Checking for header arpa/inet.h : yes
Checking for header netinet/in_systm.h : yes
Checking for header netinet/ip.h : yes
Checking for header netinet/tcp.h : yes
Checking for header netinet/in_ip.h : no
Checking for header sys/sockio.h : no
Checking for header sys/un.h : yes
Checking for header sys/uio.h : yes
Checking for header ifaddrs.h : yes
Checking for header direct.h : no
Checking for header dirent.h : yes
Checking for header windows.h : no
Checking for header winsock2.h : no
Checking for header ws2tcpip.h : no
Checking for header errno.h : yes
Checking for header getopt.h : yes
Checking for header iconv.h : yes
Checking for header nss.h : yes
Checking for header sasl/sasl.h : no
Checking for inotify_init : ok
Checking for header security/pam_appl.h : no
Checking for header zlib.h : yes
Checking for header asm/unistd.h : yes
Checking for header aio.h : yes
Checking for header sys/unistd.h : yes
Checking for header rpc/rpc.h : yes
Checking for header rpc/nettype.h : no
Checking for header alloca.h : yes
Checking for header float.h : yes
Checking for header rpcsvc/nis.h : yes
Checking for header rpcsvc/ypclnt.h : yes
Checking for header sys/sysctl.h : yes
Checking for header sys/fileio.h : no
Checking for header sys/filesys.h : no
Checking for header sys/dustat.h : no
Checking for header sys/sysmacros.h : yes
Checking for header xfs/libxfs.h : no
Checking for header netgroup.h : no
Checking for header rpcsvc/yp_prot.h : yes
Checking for HAVE_RPCSVC_YP_PROT_H : ok
Checking for header valgrind.h : no
Checking for header valgrind/valgrind.h : no
Checking for header valgrind/memcheck.h : no
Checking for header nss_common.h : no
Checking for header nsswitch.h : no
Checking for header ns_api.h : no
Checking for header sys/extattr.h : no
Checking for header sys/ea.h : no
Checking for header sys/proplist.h : no
Checking for header sys/cdefs.h : yes
Checking for header utmp.h : yes
Checking for header utmpx.h : yes
Checking for header lastlog.h : yes
Checking for header syscall.h : yes
Checking for header sys/syscall.h : yes
Checking for header sys/atomic.h : no
Checking for header libgen.h : yes
Checking for header sys/prctl.h : yes
Checking for prctl syscall : ok
Checking for O_DIRECT flag to open(2) : ok
Checking for long long : ok
Checking for intptr_t : ok
Checking for uintptr_t : ok
Checking for ptrdiff_t : ok
Checking for comparison_fn_t : ok
Checking for _Bool : ok
Checking for bool : ok
Checking for int8_t : ok
Checking for uint8_t : ok
Checking for int16_t : ok
Checking for uint16_t : ok
Checking for int32_t : ok
Checking for uint32_t : ok
Checking for int64_t : ok
Checking for uint64_t : ok
Checking for size_t : ok
Checking for ssize_t : ok
Checking for ino_t : ok
Checking for loff_t : ok
Checking for offset_t : not found
Checking for volatile int : ok
Checking for uint_t : not found
Checking for blksize_t : ok
Checking for blkcnt_t : ok
Checking if size of bool == 1 : ok
Checking if size of char == 1 : ok
Checking if size of int == 1 : not found
Checking if size of int == 2 : not found
Checking if size of int == 4 : ok
Checking if size of long long == 1 : not found
Checking if size of long long == 2 : not found
Checking if size of long long == 4 : not found
Checking if size of long long == 8 : ok
Checking if size of long == 1 : not found
Checking if size of long == 2 : not found
Checking if size of long == 4 : ok
Checking if size of short == 1 : not found
Checking if size of short == 2 : ok
Checking if size of size_t == 1 : not found
Checking if size of size_t == 2 : not found
Checking if size of size_t == 4 : ok
Checking if size of ssize_t == 1 : not found
Checking if size of ssize_t == 2 : not found
Checking if size of ssize_t == 4 : ok
Checking if size of int8_t == 1 : ok
Checking if size of uint8_t == 1 : ok
Checking if size of int16_t == 1 : not found
Checking if size of int16_t == 2 : ok
Checking if size of uint16_t == 1 : not found
Checking if size of uint16_t == 2 : ok
Checking if size of int32_t == 1 : not found
Checking if size of int32_t == 2 : not found
Checking if size of int32_t == 4 : ok
Checking if size of uint32_t == 1 : not found
Checking if size of uint32_t == 2 : not found
Checking if size of uint32_t == 4 : ok
Checking if size of int64_t == 1 : not found
Checking if size of int64_t == 2 : not found
Checking if size of int64_t == 4 : not found
Checking if size of int64_t == 8 : ok
Checking if size of uint64_t == 1 : not found
Checking if size of uint64_t == 2 : not found
Checking if size of uint64_t == 4 : not found
Checking if size of uint64_t == 8 : ok
Checking if size of void* == 1 : not found
Checking if size of void* == 2 : not found
Checking if size of void* == 4 : ok
Checking if size of off_t == 1 : not found
Checking if size of off_t == 2 : not found
Checking if size of off_t == 4 : not found
Checking if size of off_t == 8 : ok
Checking if size of dev_t == 1 : not found
Checking if size of dev_t == 2 : not found
Checking if size of dev_t == 4 : not found
Checking if size of dev_t == 8 : ok
Checking if size of ino_t == 1 : not found
Checking if size of ino_t == 2 : not found
Checking if size of ino_t == 4 : not found
Checking if size of ino_t == 8 : ok
Checking if size of time_t == 1 : not found
Checking if size of time_t == 2 : not found
Checking if size of time_t == 4 : ok
Checking for socklen_t : ok
Checking for struct ifaddrs : ok
Checking for struct addrinfo : ok
Checking for struct sockaddr : ok
Checking for HAVE_STRUCT_SOCKADDR_IN6 : ok
Checking for struct sockaddr_storage : ok
Checking for sa_family_t : ok
Checking for sig_atomic_t : ok
Checking for sigsetmask : ok
Checking for siggetmask : ok
Checking for sigprocmask : ok
Checking for sigblock : ok
Checking for sigaction : ok
Checking for sigset : ok
Checking for inet_ntoa : ok
Checking for inet_aton : ok
Checking for inet_ntop : ok
Checking for inet_pton : ok
Checking for connect : ok
Checking for gethostbyname : ok
Checking for getaddrinfo : ok
Checking for getnameinfo : ok
Checking for freeaddrinfo : ok
Checking for gai_strerror : ok
Checking for socketpair : ok
Checking for variable IPV6_V6ONLY : ok
Checking for HAVE_IPV6 : ok
Checking whether we have ucontext_t : ok
Checking for __sync_fetch_and_add compiler builtin : ok
Checking for atomic_add_32 compiler builtin : not found
Checking for strdup : ok
Checking for memmem : ok
Checking for printf : ok
Checking for memset : ok
Checking for memcpy : ok
Checking for memmove : ok
Checking for strcpy : ok
Checking for strncpy : ok
Checking for bzero : ok
Checking for shl_load : not found
Checking for shl_unload : not found
Checking for shl_findsym : not found
Checking for pipe : ok
Checking for strftime : ok
Checking for srandom : ok
Checking for random : ok
Checking for srand : ok
Checking for rand : ok
Checking for usleep : ok
Checking for setbuffer : ok
Checking for lstat : ok
Checking for getpgrp : ok
Checking for utime : ok
Checking for utimes : ok
Checking for setuid : ok
Checking for seteuid : ok
Checking for setreuid : ok
Checking for setresuid : ok
Checking for setgid : ok
Checking for setegid : ok
Checking for setregid : ok
Checking for setresgid : ok
Checking for chroot : ok
Checking for strerror : ok
Checking for vsyslog : ok
Checking for setlinebuf : ok
Checking for mktime : ok
Checking for ftruncate : ok
Checking for chsize : not found
Checking for rename : ok
Checking for waitpid : ok
Checking for wait4 : ok
Checking for initgroups : ok
Checking for pread : ok
Checking for pwrite : ok
Checking for strndup : ok
Checking for strcasestr : ok
Checking for strsep : ok
Checking for strtok_r : ok
Checking for mkdtemp : ok
Checking for dup2 : ok
Checking for dprintf : ok
Checking for vdprintf : ok
Checking for isatty : ok
Checking for chown : ok
Checking for lchown : ok
Checking for link : ok
Checking for readlink : ok
Checking for symlink : ok
Checking for realpath : ok
Checking for snprintf : ok
Checking for vsnprintf : ok
Checking for asprintf : ok
Checking for vasprintf : ok
Checking for setenv : ok
Checking for unsetenv : ok
Checking for strnlen : ok
Checking for strtoull : ok
Checking for __strtoull : not found
Checking for strtouq : ok
Checking for strtoll : ok
Checking for __strtoll : not found
Checking for strtoq : ok
Checking for memalign : ok
Checking for posix_memalign : ok
Checking for prctl : ok
Checking for dirname : ok
Checking for basename : ok
Checking for strlcpy : not found
Checking for strlcat : not found
Checking for strlcpy : not found
Checking for strlcat : not found
Checking for library bsd : yes
Checking for strlcpy : ok
Checking for strlcat : ok
Checking for getpeereid : not found
Checking for getpeereid : ok
Checking for library setproctitle : not found
Checking for setproctitle : not found
Checking for setproctitle : ok
Checking whether we can use SO_PEERCRED to get socket credentials : ok
Checking correct behavior of strtoll : not found
Checking for if_nametoindex : ok
Checking for strerror_r : ok
Checking for getdirentries : ok
Checking for getdents : not found
Checking for syslog : ok
Checking for gai_strerror : ok
Checking for get_current_dir_name : ok
Checking for timegm : ok
Checking for getifaddrs : ok
Checking for freeifaddrs : ok
Checking for mmap : ok
Checking for setgroups : ok
Checking for syscall : ok
Checking for setsid : ok
Checking for getgrent_r : ok
Checking for getgrgid_r : ok
Checking for getgrnam_r : ok
Checking for getgrouplist : ok
Checking for getpagesize : ok
Checking for getpwent_r : ok
Checking for getpwnam_r : ok
Checking for getpwuid_r : ok
Checking for epoll_create : ok
Checking for port_create : not found
Checking for fgetxattr : ok
Checking for flistea : not found
Checking for flistxattr : ok
Checking for fremovexattr : ok
Checking for fsetxattr : ok
Checking for getxattr : ok
Checking for listxattr : ok
Checking for removexattr : ok
Checking for setxattr : ok
Checking for library attr : yes
Checking for flistea : not found
Checking whether xattr interface takes additional options : not found
Checking for dlopen : not found
Checking for dlsym : not found
Checking for dlerror : not found
Checking for dlclose : not found
Checking for library dl : yes
Checking for dlopen : ok
Checking for dlsym : ok
Checking for dlerror : ok
Checking for dlclose : ok
Checking for declaration of dlopen : ok
Checking C prototype for dlopen : not found
Checking for fdatasync : ok
Checking for declaration of fdatasync : ok
Checking for clock_gettime : ok
Checking whether the clock_gettime clock ID CLOCK_MONOTONIC is available : ok
Checking whether the clock_gettime clock ID CLOCK_PROCESS_CPUTIME_ID is available : ok
Checking whether the clock_gettime clock ID CLOCK_REALTIME is available : ok
Checking for struct timespec : ok
Checking for header net/if.h : yes
Checking for header arpa/nameser.h : yes
Checking for header resolv.h : yes
Checking for res_search : not found
Checking for library resolv : yes
Checking for res_search : ok
Checking for header libintl.h : yes
Checking for library intl : not found
Checking for declaration of dgettext : ok
Checking for declaration of gettext : ok
Checking for declaration of bindtextdomain : ok
Checking for declaration of textdomain : ok
Checking for declaration of bind_textdomain_codeset : ok
Checking for bindtextdomain : ok
Checking for textdomain : ok
Checking for bind_textdomain_codeset : ok
Checking for dgettext : ok
Checking for gettext : ok
Checking for pthread_create : not found
Checking for library pthread : yes
Checking for pthread_create : ok
Checking for pthread_attr_init : ok
Checking for pthread_mutexattr_setrobust : ok
Checking for declaration of PTHREAD_MUTEX_ROBUST : not found
Checking for declaration of PTHREAD_MUTEX_ROBUST (as enum) : ok
Checking for pthread_mutex_consistent : ok
Checking for crypt : not found
Checking for library crypt : yes
Checking for crypt : ok
Checking for header readline.h : no
Checking for header readline/readline.h : yes
Checking for header readline/history.h : yes
Checking for variable rl_event_hook : ok
Checking for declaration of snprintf : ok
Checking for declaration of vsnprintf : ok
Checking for declaration of asprintf : ok
Checking for declaration of vasprintf : ok
Checking for declaration of errno : ok
Checking for declaration of EWOULDBLOCK : ok
Checking for declaration of environ : ok
Checking for declaration of getgrent_r : ok
Checking for declaration of getpwent_r : ok
Checking for declaration of pread : ok
Checking for declaration of pwrite : ok
Checking for declaration of setenv : ok
Checking for declaration of setresgid : ok
Checking for declaration of setresuid : ok
Checking for header poll.h : yes
Checking for poll : ok
Checking for strptime : ok
Checking for declaration of strptime : ok
Checking for working strptime : ok
Checking for HAVE_GETTIMEOFDAY_TZ : ok
Checking for C99 vsnprintf : ok
Checking for HAVE_SHARED_MMAP : ok
Checking for HAVE_MREMAP : ok
Checking for HAVE_INCOHERENT_MMAP : not found
Checking for HAVE_IMMEDIATE_STRUCTURES : ok
Checking for HAVE_MKDIR_MODE : ok
Checking for member st_mtim.tv_nsec in struct stat : ok
Checking for member st_rdev in struct stat : ok
Checking for member st_rdev in struct stat : ok
Checking for member ss_family in struct sockaddr_storage : ok
Checking for member __ss_family in struct sockaddr_storage : not found
Checking for member sa_len in struct sockaddr : not found
Checking for member sin_len in struct sockaddr_in : not found
Checking for HAVE_UNIXSOCKET : ok
Checking for HAVE_SECURE_MKSTEMP : ok
Checking for HAVE_IFACE_GETIFADDRS : ok
Checking for getpwnam_r : ok
Checking for getpwuid_r : ok
Checking for getpwent_r : ok
Checking for declaration of getpwent_r : ok
Checking C prototype for getpwent_r : not found
Checking for declaration of getgrent_r : ok
Checking C prototype for getgrent_r : not found
Checking C prototype for getpwent_r : not found
Checking C prototype for getgrent_r : not found
Checking for getgrouplist : ok
Checking for program perl : /usr/bin/perl
Checking for program perl : /usr/bin/perl
Checking for program perl : /usr/bin/perl
Checking for perl 5.0.0 : ok 5.20.2
Checking for perl $Config{vendorprefix}: : '/usr'
PERL_ARCH_INSTALL_DIR: : '${LIBDIR}/perl5'
PERL_LIB_INSTALL_DIR: : '${DATADIR}/perl5'
PERL_INC: : ['/etc/perl', '/usr/local/lib/i386-linux-gnu/perl/5.20.2', '/usr/local/share/perl/5.20.2', '/usr/lib/i386-linux-gnu/perl5/5.20', '/usr/share/perl5', '/usr/lib/i386-linux-gnu/perl/5.20', '/usr/share/perl/5.20', '/usr/local/lib/site_perl']
Checking for program xsltproc : not found
Checking for program python : /usr/bin/python
Checking for program python : /usr/bin/python
Checking for program python : /usr/bin/python
Checking for Python version >= 2.6.0 : ok 2.7.9
Checking for library python2.7 : yes
Checking for program python2.7-config : /usr/bin/python2.7-config
Checking for custom code : yes
Dynconfig[STATEDIR]: : '/usr/local/samba/var/locks'
Dynconfig[SCRIPTSBINDIR]: : '/usr/local/samba/sbin'
Dynconfig[PAMMODULESDIR]: : '/usr/local/samba/lib/security'
Dynconfig[WINBINDD_SOCKET_DIR]: : '/usr/local/samba/var/run/winbindd'
Dynconfig[PRIVATE_DIR]: : '/usr/local/samba/private'
Dynconfig[SETUPDIR]: : '/usr/local/samba/share/setup'
Dynconfig[PIDDIR]: : '/usr/local/samba/var/run'
Dynconfig[PKGCONFIGDIR]: : '/usr/local/samba/lib/pkgconfig'
Dynconfig[DATADIR]: : '/usr/local/samba/share'
Dynconfig[CACHEDIR]: : '/usr/local/samba/var/cache'
Dynconfig[SBINDIR]: : '/usr/local/samba/sbin'
Dynconfig[NCALRPCDIR]: : '/usr/local/samba/var/run/ncalrpc'
Dynconfig[LMHOSTSFILE]: : '/usr/local/samba/etc/lmhosts'
Dynconfig[LOCKDIR]: : '/usr/local/samba/var/lock'
Dynconfig[PYTHONARCHDIR]: : '/usr/local/samba/lib/python2.7/site-packages'
Dynconfig[PERL_LIB_INSTALL_DIR]: : '/usr/local/samba/share/perl5'
Dynconfig[LOGFILEBASE]: : '/usr/local/samba/var'
Dynconfig[PYTHONDIR]: : '/usr/local/samba/lib/python2.7/site-packages'
Dynconfig[PERL_ARCH_INSTALL_DIR]: : '/usr/local/samba/lib/perl5'
Dynconfig[NTP_SIGND_SOCKET_DIR]: : '/usr/local/samba/var/lib/ntp_signd'
Dynconfig[CONFIGFILE]: : '/usr/local/samba/etc/smb.conf'
Dynconfig[SOCKET_DIR]: : '/usr/local/samba/var/run'
Dynconfig[MODULESDIR]: : '/usr/local/samba/lib'
Dynconfig[WINBINDD_PRIVILEGED_SOCKET_DIR]: : '/usr/local/samba/var/lib/winbindd_privileged'
Dynconfig[LIBDIR]: : '/usr/local/samba/lib'
Dynconfig[LOCALEDIR]: : '/usr/local/samba/share/locale'
Dynconfig[NMBDSOCKETDIR]: : '/usr/local/samba/var/run/nmbd'
Dynconfig[INCLUDEDIR]: : '/usr/local/samba/include'
Dynconfig[CODEPAGEDIR]: : '/usr/local/samba/share/codepages'
Dynconfig[PRIVATELIBDIR]: : '/usr/local/samba/lib/private'
Dynconfig[PRIVILEGED_SOCKET_DIR]: : '/usr/local/samba/var/lib'
Dynconfig[LIBEXECDIR]: : '/usr/local/samba/libexec'
Dynconfig[SMB_PASSWD_FILE]: : '/usr/local/samba/private/smbpasswd'
Dynconfig[BINDIR]: : '/usr/local/samba/bin'
Dynconfig[CONFIGDIR]: : '/usr/local/samba/etc'
Checking for third party Python module dns.resolver : system
Checking for system popt : yes
Checking for header popt.h : yes
Checking for library popt : yes
Checking for poptGetContext : ok
Checking for system z >= 1.2.3 : yes
Checking for library z : yes
Checking for zlibVersion : ok
Checking for system z >= 1.2.3 : yes
Checking for system tdb >= 1.3.7 : not found
A local copy of the docbook.xsl wasn't found on your system consider installing package like docbook-xsl
Checking for Python version >= 2.4.2 : ok 2.7.9
Checking for Python version >= 2.4.2 : ok 2.7.9
Checking for python headers : using cache
Checking linker accepts -Wl,-no-undefined : yes
Checking linker accepts ['-undefined', 'dynamic_lookup'] : no
Checking for system talloc >= 2.1.3 : not found
Checking for system pytalloc-util >= 2.1.3 : not found
A local copy of the docbook.xsl wasn't found on your system consider installing package like docbook-xsl
Checking for Python version >= 2.4.2 : ok 2.7.9
Checking for python headers : using cache
Checking linker accepts -Wl,-no-undefined : yes
Checking linker accepts ['-undefined', 'dynamic_lookup'] : no
Checking for system tevent >= 0.9.25 : not found
Checking value of NSIG : yes
Checking value of _NSIG : yes
Checking value of SIGRTMAX : yes
Checking value of SIGRTMIN : yes
Checking for program python : /usr/bin/python
Checking for Python version >= 2.4.2 : ok 2.7.9
Checking for python headers : using cache
Checking linker accepts -Wl,-no-undefined : yes
Checking linker accepts ['-undefined', 'dynamic_lookup'] : no
Checking for program python : /usr/bin/python
Checking for program xsltproc : not found
Checking for Python version >= 2.4.2 : ok 2.7.9
Checking for python headers : using cache
Checking for system pyldb-util >= 1.1.21 : not found
Checking linker accepts -Wl,-no-undefined : yes
Checking linker accepts ['-undefined', 'dynamic_lookup'] : no
Checking for u_char : yes
Checking for u_int32_t : yes
Checking for header err.h : yes
Checking for header sys/bswap.h : no
Checking for header sys/stropts.h : yes
Checking for header sys/timeb.h : yes
Checking for header sys/times.h : yes
Checking for header timezone.h : no
Checking for header ttyname.h : no
Checking for header netinet/in6.h : no
Checking for header netinet6/in6.h : no
Checking for header curses.h : no
Checking for header term.h : no
Checking for header termcap.h : no
Checking for atexit : ok
Checking for cgetent : not found
Checking for macro cgetent : not found
Checking for getprogname : not found
Checking for macro getprogname : not found
Checking for setprogname : not found
Checking for macro setprogname : not found
Checking for gethostname : ok
Checking for putenv : ok
Checking for rcmd : ok
Checking for readv : ok
Checking for sendmsg : ok
Checking for setitimer : ok
Checking for strlwr : not found
Checking for macro strlwr : not found
Checking for strncasecmp : ok
Checking for strsep_copy : not found
Checking for macro strsep_copy : not found
Checking for strupr : not found
Checking for macro strupr : not found
Checking for swab : ok
Checking for umask : ok
Checking for uname : ok
Checking for closefrom : not found
Checking for macro closefrom : not found
Checking for err : ok
Checking for warn : ok
Checking for errx : ok
Checking for warnx : ok
Checking for flock : ok
Checking for writev : ok
Checking for XSI (rather than GNU) prototype for strerror_r : no
Checking for hstrerror : ok
Checking for socket : ok
Checking for getipnodebyname : not found
Checking for macro getipnodebyname : not found
Checking for gethostent : ok
Checking for gethostent_r : ok
Checking for sethostent : ok
Checking for endhostent : ok
Checking for getipnodebyaddr : not found
Checking for macro getipnodebyaddr : not found
Checking for freehostent : not found
Checking for macro freehostent : not found
Checking for gethostbyname_r : ok
Checking for gethostbyaddr : ok
Checking for library socket : not found
Checking for library nsl : yes
Checking for getipnodebyname : not found
Checking for macro getipnodebyname : not found
Checking for getipnodebyaddr : not found
Checking for macro getipnodebyaddr : not found
Checking for freehostent : not found
Checking for macro freehostent : not found
Checking for iruserok : ok
Checking for bswap16 : not found
Checking for macro bswap16 : not found
Checking for bswap32 : not found
Checking for macro bswap32 : not found
Checking for header sys/termios.h : yes
Checking for struct winsize : yes
Checking for member ws_xpixel in struct winsize : yes
Checking for member ws_ypixel in struct winsize : yes
Checking for variable h_errno : yes
Checking for declaration of h_errno : yes
Checking for header dns.h : no
Checking for res_nsearch : not found
Checking for macro res_nsearch : not found
Checking for res_ndestroy : not found
Checking for macro res_ndestroy : not found
Checking for dns_search : not found
Checking for macro dns_search : not found
Checking for dn_expand : not found
Checking for macro dn_expand : not found
Checking for header dns.h : no
Checking for res_nsearch : not found
Checking for header dns.h : no
Checking for header dns.h : no
Checking for macro res_nsearch : ok
Checking for header dns.h : no
Checking for res_ndestroy : not found
Checking for header dns.h : no
Checking for header dns.h : no
Checking for macro res_ndestroy : not found
Checking for header dns.h : no
Checking for dns_search : not found
Checking for header dns.h : no
Checking for header dns.h : no
Checking for macro dns_search : not found
Checking for header dns.h : no
Checking for dn_expand : ok
Checking for variable _res : yes
Checking for declaration of _res : yes
Checking for dirfd : ok
Checking for declaration of dirfd : yes
Checking for member dd_fd in DIR : no
Using in-tree heimdal kerberos defines
Checking for program krb5-config.heimdal : not found
Checking for program krb5-config : /usr/bin/krb5-config
Checking for system com_err : yes
Checking for library com_err : yes
Checking for com_right_r : ok
Checking for gnutls >= 3.0.0s : yes
Checking for library gnutls : yes
Checking for header gnutls/gnutls.h : yes
Checking for gnutls_global_init : ok
Checking for header gnutls/x509.h : yes
Checking for variable gnutls_x509_crt_set_version : yes
Checking for variable gnutls_x509_crt_set_subject_key_id : yes
Checking for gnutls_datum : yes
Checking for gnutls_datum_t : yes
Checking for header linux/fcntl.h : yes
Checking for declaration of F_SETLEASE : yes
Checking for declaration of SA_SIGINFO : yes
Checking for header execinfo.h : yes
Checking for backtrace : ok
Checking for backtrace_symbols : ok
Checking for member f_frsize in struct statvfs : yes
Checking for statvfs (SVR4) : yes
Checking for *bsd style statfs with statfs.f_iosize : no
Checking if f_fsid is an integer : yes
Checking whether statvfs.f_flag exists : yes
Checking whether statvfs.f_flags exists : no
Checking for libsystemd-daemon : not found
Checking for library systemd-daemon : no
Checking for library systemd : no
Checking for libsystemd-journal : not found
Checking for library systemd-journal : no
Checking for library systemd : no
Checking for lttng-ust : not found
Checking for header lttng/tracef.h : no
Checking for library lttng-ust : no
Checking for header gpfs.h : no
Checking for library iconv : no
Checking for library iconv : not found
Checking for iconv_open : ok
Checking for pam_start : not found
Checking for macro pam_start : not found
Checking for library pam : not found
Checking for pam_start : not found
Checking for macro pam_start : not found
Checking for header security/pam_modules.h : no
Checking for header pam/pam_modules.h : no
Checking for pam_start : not found
Checking for macro pam_start : not found
Checking for library pam : not found
Checking for header security/pam_appl.h : no
Checking for pam_start : not found
Checking for header security/pam_appl.h : no
Checking for header security/pam_appl.h : no
Checking for macro pam_start : not found
Checking for header nss_dbdefs.h : no
Checking for member ipnode.af_family in union nss_XbyY_key : no
Checking for member pw_comment in struct passwd : no
Checking for member pw_age in struct passwd : no
Checking for library ncurses : not found
Checking for tgetent : not found
Checking for macro tgetent : not found
Checking for library curses : not found
Checking for tgetent : not found
Checking for macro tgetent : not found
Checking for library termcap : yes
Checking for tgetent : ok
Checking for rl_completion_t : no
Checking for CPPFunction : yes
Checking for library readline : yes
Checking for rl_completion_matches : ok
Checking for history_list : ok
Checking for header bsd/md5.h : yes
Checking for MD5Init : not found
Checking for macro MD5Init : not found
Checking for MD5Init : ok
Checking for header CommonCrypto/CommonDigest.h : no
Checking for CC_MD5_Init : not found
Checking for macro CC_MD5_Init : not found
Checking for header CommonCrypto/CommonDigest.h : no
Checking for


6. Continuando o fim do log

Antonio Amazonas
antonioamazonas

(usa Debian)

Enviado em 24/09/2015 - 20:08h

Esté é o final da linha, não coube no primeiro post ai copiei aqui



/samba-4.3.0/source3/wscript:700: error: LDAP support not found. Try installing libldap2-dev or openldap-devel. Otherwise, use --without-ldap to build without LDAP support. LDAP support is required for the LDAP passdb backend, LDAP idmap backends and ADS. ADS support improves communication with Active Directory domain controllers.

Obrigado!!


7. Re: samba-tool domain provision

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/09/2015 - 20:30h

Pessoal, por qual motivo estão compilando o samba4, se ele ja esta disponível nos repositórios oficiais do debian 8(E para o 7 via backports)?

Para instalar ao que vejo dos muitos tutoriais (Antigos) que pedem compilação no debian, bastaria para instalar:

su - 
apt-get update ; apt-get install samba krb5-config attr acl krb5-user




------------------------------------------------------
KISS principle, RTFM and STFW = 42


8. Re: samba-tool domain provision

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 24/09/2015 - 21:50h

Boa noite.

Prezado, não é necessário instalar o LDAP (slapd ldap-utils), pois o samba4 já vem com este embutido. Você comparou as dependências e instalou as mesmas de acordo com o site que te passei? https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs

Se sim, depois de dar um make, a compilação segue? Durante o processo de compilação pode ocorrer sim alguns erros mas é normal. Agora se o erro fizer com que o processo pare como você mencionou no primeiro post, aí deve ter algum problemas de não satisfazer as dependências.

A versão do samba4 nos repositórios é antiga em comparação as versões estáveis encontradas no site samba.org. E ao que me parece a versão do repositório não dá suporte ao provisionamento de um domínio apenas a trabalhar como servidor de arquivos.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



9. Re: samba-tool domain provision

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/09/2015 - 22:20h

A versão ser anterior a ultima lançada na pagina do projeto é algo normal no caso do CentOS (Red Hat) e Debian, onde a mesma versão é mantida por muito tempo (Porem com atualizações de segurança, correções de bugs).
Ao que esta na descrição do pacote e pude notar em textos sobre esta configuração, ele deve suportar sim a configuração como PDC.

Vejo muito material pedindo compilação para o samba 4, mas em geral baseados quando a versão 3 ainda era a padrão, depois as distribuições passaram a adotar o samba4. Mas alguns altores continuaram usando o processo de compilação, sem necessidade em alguns casos (CentOS7, openSUSE, Archlinux etc).

*Wagner, desculpe a intromissão.

Eu particularmente não julgo uma boa pratica compilar manualmente um software em distribuições com gerenciadores de pacotes(Salvo quando estritamente necessário), pois dificulta atualizações futuras, que terão que ser feitas e controladas pelo administrador manualmente sempre que alguma correção de bug ou de falhas de segurança for disponibilizada. Alem disso, quando o numero de dependências é elevado(ou o administrador não documentou estas), pode-se gerar conflitos entre versões instaladas manualmente e uma instalada por algum pacote via repositório posteriormente. Já que o gerenciador desconhece a existência dos pacotes e arquivos instalados "no braço".

Assim como no Red Hat existe o rpm-build. O Debian possui o apt-build, para gerar um pacote a partir dos fontes mantendo o registro da instalação na base do gerenciador de pacotes (APT no caso), evitando problemas futuros.


------------------------------------------------------
KISS principle, RTFM and STFW = 42


10. Re: samba-tool domain provision

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 24/09/2015 - 22:27h

Estamos todos aqui para compartilhar experiências e conhecimentos. Eu faço a compilação por se adequar melhor a performace do hardware em relação a uma instalação via repositórios, mas no meu caso compilo apenas o samba4. Os demais serviços opto por usar os pacotes do repositório.

Ainda não testei configurar o samba4 como controlador de domínio com os pacotes do repositórios, mas irei fazer alguns testes e ver como se comportam. De toda forma, sua dica foi útil e prudente.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782



11. Re: samba-tool domain provision

Antonio Amazonas
antonioamazonas

(usa Debian)

Enviado em 25/09/2015 - 00:04h

K666 escreveu:

Boa noite.

Prezado, não é necessário instalar o LDAP (slapd ldap-utils), pois o samba4 já vem com este embutido. Você comparou as dependências e instalou as mesmas de acordo com o site que te passei? https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs

Se sim, depois de dar um make, a compilação segue? Durante o processo de compilação pode ocorrer sim alguns erros mas é normal. Agora se o erro fizer com que o processo pare como você mencionou no primeiro post, aí deve ter algum problemas de não satisfazer as dependências.

A versão do samba4 nos repositórios é antiga em comparação as versões estáveis encontradas no site samba.org. E ao que me parece a versão do repositório não dá suporte ao provisionamento de um domínio apenas a trabalhar como servidor de arquivos.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782




Mais uma vez, Obrigado para todos.
Consegui seguindo as dicas de vocês!

segue o final do log :
...
bash: Checking: comando não encontrado
root@pdc-debian:/samba-4.3.0# Checking compiler for PIE support : yes
bash: Checking: comando não encontrado
root@pdc-debian:/samba-4.3.0# Checking compiler for full RELRO support : yes
bash: Checking: comando não encontrado
root@pdc-debian:/samba-4.3.0# Checking compiler accepts ['-fstack-protector'] : yes
bash: Checking: comando não encontrado
root@pdc-debian:/samba-4.3.0# Checking linker accepts ['-fstack-protector'] : yes
bash: Checking: comando não encontrado
root@pdc-debian:/samba-4.3.0# 'configure' finished successfully (2m42.576s)



Wagner F. de Souza eu adiconei alguns repositórios no source.list e executei a instalação das dependências, depois executei o ". configure" e ele finalizou com sucesso!

adicionei estes repositórios:

deb http://ftp.br.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.br.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free

deb http://ftp.br.debian.org/debian/ wheezy main
deb-src http://ftp.br.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main


Obrigado a todos, mas ainda não acabou hehehehe

Tenho muito a aprender....





12. Re: samba-tool domain provision

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 25/09/2015 - 01:02h

Quanto mais nos esforçamos mais conseguimos. Não esqueça de:

1. Mencionar a solução encontrada;
2. Marcar como melhor respostas àquela que te ajudou a solucionar o problema valorizando assim o esforço dos membros da comunidade em ajudar.
_________________________
Wagner F. de Souza
Técnico/Instrutor de Informática
"GNU/Linux for human beings."
LPI ID: LPI000297782




01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts