Samba4

646 views
Skip to first unread message

Raphael Bastos

unread,
Mar 24, 2014, 1:57:57 PM3/24/14
to funto...@googlegroups.com
Hello,

Have any of you had the courage to test the Samba4?


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================

Anthony Pelaez

unread,
Mar 24, 2014, 2:15:43 PM3/24/14
to funto...@googlegroups.com
Hey Raphael,

I am planning on testing in the next few days. I have 10 Xenserver 6.2 VMs with six running Windows 2012 with two of them as Domain Controllers and four running Funtoo. I am interested integrating a Samba4 File Server with Active Directory. I meant to mess with it last week but I had to go out of town on business. I will keep you posted on how it goes.

Tony


--
--
To manage your subscription, visit this group at
http://groups.google.com/group/funtoo-dev?hl=en
---
Also be sure to check out:
Funtoo Forums: http://forums.funtoo.org
Planet Larry: http://larrythecow.org

---
You received this message because you are subscribed to the Google Groups "Funtoo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to funtoo-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raphael Bastos

unread,
Mar 24, 2014, 2:48:21 PM3/24/14
to funto...@googlegroups.com
Tony, 

I am wanting to test it without integration with AD, just like a conventional PDC. I hope that integration with PAM is quiet, because I'm out of patience to climb a whole OpenLDAP environment.


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Anthony Pelaez

unread,
Mar 24, 2014, 2:54:49 PM3/24/14
to funto...@googlegroups.com
I perfectly understand in regards with openldap...that is why I haven't been in a big hurry, LOL!

Tony

Raphael Bastos

unread,
Mar 26, 2014, 2:18:46 PM3/26/14
to funto...@googlegroups.com
Anthony,

My first test:

server ~ # samba -V
Version 4.1.6
server ~ # samba-tool user list
Global parameter unix extensions found in service section!
Global parameter unix extensions found in service section!
ERROR(ldb): uncaught exception - ldb_search: invalid basedn '(null)'
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/user.py", line 271, in run
    attrs=["samaccountname"])


LOL


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Anthony Pelaez

unread,
Mar 26, 2014, 2:21:27 PM3/26/14
to funto...@googlegroups.com
Really! I got something to look forward to...LOL!

Thanks for the update!

Tony

Raphael Bastos

unread,
Mar 26, 2014, 3:30:32 PM3/26/14
to funto...@googlegroups.com
Good news!!!

server ~ # samba-tool domain provision 
Realm [BASTOSSERVICE.COM.BR]: fileserver              
 Domain [fileserver]: bastosservice
 Server Role (dc, member, standalone) [dc]: 
 DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: 
 DNS forwarder IP address (write 'none' to disable forwarding) [127.0.0.1]: 
Administrator password: 
Retype password: 
Looking up IPv4 addresses
More than one IPv4 address found. Using 192.168.0.1
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=fileserver
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Creating CN=MicrosoftDNS,CN=System,DC=fileserver
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at /var/lib/samba/private/krb5.conf
Once the above files are installed, your Samba4 server will be ready to use
Server Role:           active directory domain controller
Hostname:              server
NetBIOS Domain:        BASTOSSERVICE
DNS Domain:            fileserver
DOMAIN SID:            S-1-5-21-3250152294-1280640994-1374014233



Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Anthony Pelaez

unread,
Mar 26, 2014, 3:40:34 PM3/26/14
to funto...@googlegroups.com
That is great news and I hope that it works for me also. I just Samba 4.16 installed and will start testing after I finish work.

Thanks for the update.

Tony

Raphael Bastos

unread,
Mar 26, 2014, 4:05:55 PM3/26/14
to funto...@googlegroups.com
server ~ # samba-tool user list
Administrator
dns-server
krbtgt
Guest


:)))))))))))))))))))))))))))))))))))))))))


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Raphael Bastos

unread,
Mar 26, 2014, 4:06:47 PM3/26/14
to funto...@googlegroups.com
Tony,

Let's create an official documentation for Samba4 Funtoo? 
The documentation wiki samba is very bad.


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Raphael Bastos

unread,
Mar 26, 2014, 5:10:20 PM3/26/14
to funto...@googlegroups.com
Bad news,

server samba # /etc/init.d/samba start
 * samba -> start: smbd ...
 * start-stop-daemon: failed to start `/usr/sbin/smbd'                                                                                                                                                                                 [ !! ]
 * samba -> start: nmbd ...
 * start-stop-daemon: failed to start `/usr/sbin/nmbd'                                                                                                                                                                                 [ !! ]
 * Error: starting services (see system logs)
 * samba -> stop: smbd ...
 * start-stop-daemon: no matching processes found                                                                                                                                                                                      [ ok ]
 * samba -> stop: nmbd ...
 * start-stop-daemon: no matching processes found                                                                                                                                                                                      [ ok ]
 * ERROR: samba failed to start


server samba # cat /var/log/samba/log.smbd 
[2014/03/26 18:09:56,  0] ../source3/smbd/server.c:1198(main)
  smbd version 4.1.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/03/26 18:09:56.190105,  0] ../source3/smbd/server.c:1250(main)
  server role = 'active directory domain controller' not compatible with running smbd standalone. 
  You should start 'samba' instead, and it will control starting smbd if required


server samba # cat /var/log/samba/log.nmbd 
[2014/03/26 18:09:56,  0] ../source3/nmbd/nmbd.c:902(main)
  nmbd version 4.1.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/03/26 18:09:56,  0] ../source3/nmbd/nmbd.c:915(main)
  server role = 'active directory domain controller' not compatible with running nmbd standalone. 
  You should start 'samba' instead, and it will control starting the internal nbt server



Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Raphael Bastos

unread,
Mar 26, 2014, 5:11:23 PM3/26/14
to funto...@googlegroups.com


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Ronaldo Alves

unread,
Apr 19, 2014, 9:45:15 PM4/19/14
to funto...@googlegroups.com
Hi,

I wrote
an article about Samba4 implementation. Although written based on CentOS, the whole environment was initially configured in a Funtoo installation. If you want, I send to you. It may be helpful?


Ronaldo Alves

Raphael Bastos

unread,
Apr 20, 2014, 12:08:45 AM4/20/14
to funto...@googlegroups.com
Please! Thanks a lot. hahaha

\o/


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Anthony Pelaez

unread,
May 13, 2014, 4:19:25 AM5/13/14
to funto...@googlegroups.com
Hi Raphael,

I want to apologize for not replying to your request. I never did see it until I started testing and went through the emails.

Anyway I got Samba-4.1.6 working with Windows 2012 Server. I couldn't install Samba-4.1.7. I kept getting the following
error although it is installed:

Checking for system subunit   not found
ERROR: System library subunit of version 0.0.0 not found, and bundling disabled

I didn't have time to figure this out but Samba-4.1.6 installs just fine. I have my Funtoo server set up as a Domain Member
and was able to join to my Windows 2012 Primary Domain Controller (PDC) and see the users and groups in the domain.
I also set up a Home share and can access it from Windows. I am still testing things but it is looking good so far.

I will write down all the steps that I performed and post it tomorrow. Will the suffice for now? When I get some time I can
document it more formally.

Thanks,
Tony

Raphael Bastos

unread,
May 13, 2014, 6:24:33 PM5/13/14
to funto...@googlegroups.com
Yeap! Thanks a lot for this feedback.

I will return to use samba4 in tests too.


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


Reply all
Reply to author
Forward
0 new messages