Slashdot Mirror


Ask Slashdot: Is Samba4 a Viable Alternative To Active Directory?

First time accepted submitter BluPhenix316 writes "I'm currently in school for Network Administration. I was discussing Linux with my instructor and he said the problem he has with Linux is he doesn't know of a good alternative to Active Directory. I did some research and from what I've read Samba4 seems very promising. What are your thoughts?"

82 of 388 comments (clear)

  1. No by im_thatoneguy · · Score: 4, Interesting

    We finally switched out our last NAS that was running Samba. Too many small glitches. Not worth the hassle.

    1. Re:No by Hylandr · · Score: 4, Informative

      Poor administration is not the software / OS fault.

      --
      ~ People that think they are better than anyone else for any reason are the cause of all the strife in the world.
    2. Re:No by Revotron · · Score: 5, Funny

      Because clearly, they're not holding it right.

    3. Re:No by Hylandr · · Score: 5, Insightful

      Samba has been around literally for decades and has seen constant reliable use.

      You're suggestion that the software is new and poorly designed is invalid.

      There are good admins and bad admins. If software that has been successfully deployed for multitudes of years has been a problem then bad admins are far more likely to blame.

      - Dan.

      --
      ~ People that think they are better than anyone else for any reason are the cause of all the strife in the world.
    4. Re:No by localman57 · · Score: 5, Insightful

      Is it fair, to say, then, that Samba4 and AD are both good choices for people with strong admin background, but perhaps AD is a beter choice for someone who, for instance, administers the server in addition to other business tasks? Not everybody has the time to become a good admin. They tell their boss that, but the boss also doesn't have funding to go and hire one.

    5. Re:No by Revotron · · Score: 5, Insightful

      Software being around for decades doesn't magically cure all the bugs.

      The OP stated that there were too many small glitches with the features they were trying to use, to which your response was that these glitches were imaginary and he just wasn't using it right. That sounds like something Steve Jobs would say.

      You're suggesting that Samba is absolutely perfect and has nothing wrong with it at all just because people have been using it for 20 years. I doubt that. Would you like to take that logic and apply it to Windows and see where that gets us?

    6. Re:No by im_thatoneguy · · Score: 4, Interesting

      You're right. It is the administration not the software. We have a couple file servers running Small Business Server and a couple that were running Samba. The SBSs required no administration. We turned them on and they just kept trucking. Our samba box would have random drop outs where it would deny access unless you restarted the file server.

      We also had trouble with user group permissions not getting picked up properly. We also had a problem where the clock would get out of sync and then deny access.

      It seemed like there was a new unique "Administration" necessary every couple weeks.

    7. Re:No by Anonymous Coward · · Score: 3, Interesting

      You don't know what you're doing then.

      I have a samba box with Win7 auth via AD working fine, and serving 118MB/s over gig-e. Never had a problem with it, and I sometimes forget which shares are Win hosted and which are hosted from the FreeNAS box (samba).

    8. Re:No by Mike+Buddha · · Score: 5, Insightful

      If Samba is difficult to administer, that's a problem. That makes it inferior to the competition.

      --
      by Mike Buddha -- Someday the mountain might get him, but the law never will.
    9. Re:No by Peachy · · Score: 5, Informative

      The basic samba code has indeed been around for decades, and it's great.

      Do be aware that samba4 release candidate 4 only got released on 30th October 2012 and as the announcement says "This is the first release candidate of Samba 4.0.0! This is *not* intended for production environments and is designed for testing purposes only.".

      http://lists.samba.org/archive/samba-announce/2012/000277.html

    10. Re:No by im_thatoneguy · · Score: 4, Interesting

      Good for you. If you want to come setup my Samba box then be my guest. All I know is that one set of file servers works great without any administration and one has been a non-stop headache.

      We have a grand total of 0 IT staff. That's possible with AD. I haven't found that to be possible with any Active Directory replacements.

    11. Re:No by Anonymous Coward · · Score: 5, Funny

      No, it's not. When it involves Linux or OSS, it's always the admin's fault. When it's a proprietary solution, it's bad software. You must be new here, get with it.

    12. Re:No by Anonymous Coward · · Score: 2, Insightful

      The real question is does AD work better than Samba4 and if so is it significant enough that the costs are lower after taking into consideration time, expertise (after some time with the technology), and license costs, etc. It may be Samba4 is easier to setup and get working than AD although there are potential bugs that you will need to spend money on to get fixed.

    13. Re:No by interval1066 · · Score: 2, Insightful

      Agreed. You whiny bitches appear to be expecting a drop-in replacement for Active Directory. If that's the expectation I think you're gonna be very disappointed. For sundry and basic AD duties Samba4 is great contender. If you want all the bells and whistles your gonna need to fork up that license fee.

      --
      Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
    14. Re:No by rtfa-troll · · Score: 4, Insightful

      Our samba box would have random drop outs where it would deny access unless you restarted the file server.

      You probably had a minor misconfiguration. Would have happened whichever box you had it on. What did your support company say? [....] Oh; you set up a system without a support company? You thought that "Open Source" was a magic word which meant "fixes its self without any support company" ; you thought that Red Hat stood for "nice company that fixes everything for free even if we install a clone distro" and forgot that it actually means "fixes stuff their paying customers care about".

      Okay, I might be wrong in this case, but 98% of the time when asked it turns out that the people have spent thousands on Microsoft, Cisco and so on certificates. They have support contracts coming out of their ears for Oracle. Then they install an open source load balancer or database or something and suddenly the fact they saved money on the software license means they want to save even more money on the support. This is a bad mistake; everyone should look for competent support and if they can't find it then they should find a way to set it up themselves. If there's nothing, then you can probably employ some of the people who wrote the project really cheap and get a bunch of good developers in the price.

      --
      =~ s,(.*),<sarcasm>$1</sarcasm>,g if any_point_you_wish();
    15. Re:No by sjames · · Score: 4, Insightful

      No, but successful use for decades does indicate that it works.

    16. Re:No by postbigbang · · Score: 2

      Support is always valuable, but when the mail box is filling up with often the same problems, you have to make a value judgment.

      Sometimes it's the fact that Microsoft training is somewhat rigorous and people *tend* to apply AD settings according to a well known set of formulas. I find that a lot of serious professionals lacking AD training depend on SAMBA documentation to try to make AD run, thus creating chasms linking OpenLDAP, SAMBA, and AD structures, and they're different beasts.

      Yes, it's great to have backup support, but while SAMBA can work very reliably, Microsoft's cooperation has been mercurial despite all the litigation. My advice would be to stick to AD homogeneously, or SAMBA homogeneously, or stick to a common denominator of NTLM-ish authentication for things like NAS devices, and other non-AD peripherals. Sure, it's supposed to work. Mine works. But I've also seen any number of installations that became exception-handling missions. RedHat, Oracle, Novell, and other support mechanisms can help cure the problem, but it requires making sure that the people supporting you know the ins-and-outs of your specific installation, as there are very few 'generic' cures to problems, especially in storage add-on devices-- because they're often driven by OEM implementations with difficult-to-track implementation qualities.

      Don't even get me started on regime-change problems.

      --
      ---- Teach Peace. It's Cheaper Than War.
    17. Re:No by jythie · · Score: 5, Insightful

      Yeah, I never understood the whole 'tools that require more training to use are better!'. If two tools do similar jobs in the same use case, but one can be administered by someone who isn't a dedicated professional, and the other one requires a specialist, then within that use case, the easier to use tool is better. Additional complexity without additional benefit is not superior.

    18. Re:No by ozmanjusri · · Score: 4, Informative

      Is it fair, to say, then, that Samba4 and AD are both good choices for people with strong admin background, but perhaps AD is a beter choice for someone who, for instance, administers the server in addition to other business tasks?

      Not really.

      If you want to admin Windows, then admin Windows, but don't pretend there's anything particularly challenging about setting up and managing Samba4 on Linux. Just step through one of the many guides. e.g: http://praxis.edoceo.com/howto/samba4

      Slashdot's an Apple/Microsoft site now, so most of the comments here will be FUD. That shouldn't deter anyone with an interest from trying Samba4. It's simple enough that even a MSCE shouldn't have a problem.

      --
      "I've got more toys than Teruhisa Kitahara."
    19. Re:No by DigiShaman · · Score: 5, Informative

      Certified SBS guy here.

      Why would you be running multiple SBS boxes? You do realize that each SBS server is its own Forrest/Domain, right? You can't just join these boxes to the same domain without breaking some serious functionality. That's because each SBS box *must* hold all the FSMO roles. About the only time you can temporarily break an SBS box is when performing a migration to a new SBS box. You can join a standard server as a secondary DC, but again, you can not have two or more SBS servers in the same Forest!

      I'm guessing one of two things here.
      1. You performed an epic hack.
      2. You really don't know what the hell your doing.

      --
      Life is not for the lazy.
    20. Re:No by MikeBabcock · · Score: 2

      As opposed to AD which has no glitches or bugs at all ... lol

      --
      - Michael T. Babcock (Yes, I blog)
    21. Re:No by Anomalyst · · Score: 3, Interesting

      Not expecting a drop-in but I would like it to at least provision a domain or have some response on irc or the samba maing list as to why it fails. Having the wiki howto up to date would not be a bad idea either.
      The wiki and most other online resources indicate the one should use the "provision" command. This command is no longer available in the S4RC you must use samba-tool to accomplish the task.
      sudo samba-tool domain provision --realm=new.example.com --domain=NEWDOM --dns-backend=BIND9_DLZ --adminpass=badpass --server-role='domain controller'

      Unfortunately, attempting to provision on a fresh Ubuntu 12.04 install with the following additional packages:
      build-essentials python-software-properties build-essential libacl1-dev python-dev libldap2-dev pkg-config gdb libgnutls-dev libblkid-dev libreadline-dev libattr1-dev openssl (please note these pre-requisite are not documented in the wiki) gives the following error:
      "libkdc-policy.so: cannot open shared object file: No such file or directory"
      and I cant get an answer as to where to find or build this module or find such info in a web search. All in all, it has been a very frustrating experience.

      --
      There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
    22. Re:No by MikeBabcock · · Score: 3, Informative

      Your problem isn't AD, its that grand total of zero IT staff.

      Get an external IT person, have them come in and configure and manage the servers for you periodically, and call them when you need things changed instead of hacking at it yourself and you'll have a much better experience no matter which software they use.

      I administer over a dozen Samba sites remotely via SSH and have no issues with it, I'd expect you can find admins to do the same if you shop around.

      --
      - Michael T. Babcock (Yes, I blog)
    23. Re:No by kestasjk · · Score: 5, Funny

      Don't you get it? It has been used for 20 years. What are you complaining about?

      --
      // MD_Update(&m,buf,j);
    24. Re:No by Bert64 · · Score: 3, Interesting

      There's a difference between something possible and being a good idea...
      I have seen samba networks setup with zero ongoing maintenance too...

      If you don't maintain your servers, they will become more and more of a security liability as time goes on.

      AD domains are terribly insecure at the best of times, find a single box in the domain thats got any vulnerability, exploit it and pull off some hashes then spray them across the network to get more boxes, eventually you own the whole domain. And if you think WSUS will ensure everything is updated, try updating a big network and then go around and thoroughly audit it (ie using something that checks for actual vulns or old file versions rather than querying the windows update apis)... You will usually find that a bunch of updates are marked as installed, when in reality they aren't... And all you need is one vulnerable box.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    25. Re:No by Jane+Q.+Public · · Score: 4, Insightful

      Not to mention that since Linux has no direct analogue to a "Domain Controller", searching for a substitute for Active Directory on Linux is kind of like searching for BBQ ribs at the local ice cream parlor.

      If you grew up in an MS world and you just can't get over it, by all means try to find an Active Directory replacement. If not, brush off your Linux skills and learn how to do it right.

    26. Re:No by deek · · Score: 2

      First impression of the error: you're missing a library file.

      I did a google search, and came up with this bug: https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/887537

      Maybe that will help?

    27. Re:No by hairyfeet · · Score: 3, Insightful

      That is like saying WinRT has been around for decades since Windows 1.0 came out 30 years ago. I draw you to the very first line of TFA: " Samba4 is an ambitious, yet achievable, reworking of the Samba code." Whenever you hear the words "ambitious and reworking" the words that SHOULD pop into your mind immediately is "buggy as fuck" and I don't give a damned WHO wrote the code you NEVER use words like ambitious unless you are doing some serious flying without a net and are trying to warn folks things aren't gonna be business as usual.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    28. Re:No by Anomalyst · · Score: 2

      I saw that, it doesn't provide a solution, the file is not in the latest git pull nor in the tarball download. If I was really ambitious I gues I could start downloading & searching prior tarballs, but that really should not have to be done. It would be nice to know what source files generate the library. I have a sneaking suspicion they have renamed, as they did with the "provision" command and the code/library is really there, just not with the name in the import statement. I went through all the names with 'kdc' in them and it was not intuitively obvious that any of them correlated with the policy library. I am not stupid and tried really hard to use other avenues to resolve the issue before p*ssing and moaning, I would imagine things will get better once they start making a .deb package. At this point, the only PPA's I could find were for the alpha releases, sigh. I am really surprised there are not yum/apt/etc nightly packages available. Automating the package release seems like a no-brainer for either the SAMBA or Ubuntu team.

      --
      There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
    29. Re:No by squiggleslash · · Score: 2

      iPhone maps have been around for years and have seen constant reliable use, so surely people who are complaining about it now are wrong?

      SAMBA 4 most definitely has not been deployed for decades and is a virtually entirely new system. Of course, it hasn't even been released yet! (The publically downloadable versions are alphas, betas, and RCs.) I don't doubt it'll be a great system, but faulting sysadmins for anything other than using unfinished software in a production environment is absurd.

      --
      You are not alone. This is not normal. None of this is normal.
    30. Re:No by Rutulian · · Score: 4, Informative

      You need to install Kerberos. That is what Active Directory is, see: LDAP, Kerberos, DNS, and file/print sharing, all rolled up into a nice package. It appears the Ubuntu package doesn't include it as a dependency, which it should, so I would blame the package manager.

      I agree, the docs need to be better, but Samba4 hasn't officially been released yet.

    31. Re:No by Anonymous Coward · · Score: 2, Insightful

      You are missing a library, this is a basic linux admin issue when it comes to installing software. I mainly deal with Red Hat boxes which comes with YUM, in distros using "yum whatprovides '*/libkdc-policy.so'" would let you know which package contains the file you are missing. In Ubuntu with Aptitude you can run something like "apt-file update; apt-file search libkdc-policy.so".

    32. Re:No by im_thatoneguy · · Score: 2

      I'm guessing one of two things here.
      1. You performed an epic hack.
      2. You really don't know what the hell your doing.

      3. I wasn't interested in pedantic product naming. And always assumed they were part of the SBS family of products. Apparently only SBS is SBS and the other SKUs are a different family of servers.

      For those who are truly interested, and I can't possibly imagine why...

      Domain Controller: Microsoft Windows Small Business Server 2008
      File Servers: Microsoft Windows Server Standard Edition 2008 R2(tm)(c) for primary RAID and then we're replacing Samba boxes with Microsoft Windows Storage Server 2008 R2 (tm)(c).

      Also while we're being pedantic about which of 500 server products our small company is deploying... it's "you're doing" not "your doing".

      To everyone considering Samba... fine. I don't care. Use Samba, I'm not going to but I'm sure it'll bake you cookies and fluff your pillows. I could care less. I've had a bad experience with it--but maybe my experience was the exception not the rule. All I know is that it was a PITA and never really worked right.

    33. Re:No by Compaqt · · Score: 3, Informative

      Your link itself noted glitches in Samba4:

      No More Network Browsing
      In Windows based AD you can still browse a network, Samba3 had this but Samba4 does not. So, you will not see your domain, or browse machines in the domain.

      Samba4 and Homes
      The [homes] share and the browseable directive don't work as expected.

      Cannot contact any KDC for requested realm: unable to reach any KDC in realm $DOMAIN
      This is a DNS related issue, it's likely the above SRV records are not present, fix your DNS.

      The first one is kind of major, I would think: You can't even browse a network?!

      --
      I'm not a lawyer, but I play one on the Internet. Blog
    34. Re:No by Compaqt · · Score: 3, Interesting

      It seems that it would almost be easier drop reverse engineering the Windows network server to allow standard Windows clients to use Samba, and instead:

      Create a new Windows client network DLL which can be installed on Windows clients to be able to access resources provided by Linux servers running LDAP and friends.

      --
      I'm not a lawyer, but I play one on the Internet. Blog
    35. Re:No by CAIMLAS · · Score: 4, Interesting

      Sorry, what? Have you run Samba in a business environment? I have, and I can completely understand the sentiments here: there's a lot of little stuff that goes amiss or requires seemingly excessive management.

      There are a LOT of "small glitches" while using Samba 3 in any not-just-Linux environment. It has nothing to do with 'poor administration'. Over the years, I have had problems with Windows - 98, XP, 2k, 2k3,Vista, and now W7 - operating properly against a Samba host. This isn't a matter of 'improperly administered' so much as it's a "Microsoft released a patch which broke things which worked previously" problem, and it seems to be getting worse as time goes on.

      To add insult to injury, Samba 3 development has basically been in 'maintenance' mode for years, with Samba 4 getting seemingly preferential treatment. There have been very few new features of functionality added to Samba 3 aside from the odd "needed to keep things working well" patch or a backport from Samba 4 by an intrepid sysadmin (or so it seems). Really, what used to seem like a very nice and mature project now feels like something on life support, with half the features present having been backported from the development branch, often without a full implementation, inconsistencies, and no/poor documentation.

      As for Samba 4, (which neither you nor my post's GP seem to realize we're talking about here): it's an entirely different beast than Samba 3. The only significant thing it appears to share in common with Samba 3 is the smb.conf format and actual file/print services (which is a fairly recent change). It is still in HEAVY development. What they started out to implement was really quite awesome and interesting: Active Directory based on open source tools currently in existence. At one point, they were using BIND for DNS integration and Heimdal for the directory. Their team members made many valiant attempts and efforts in providing patches to these supporting projects.

      However...

      Both those things are now internal to Samba 4. That's right: the directory itself as well as a DNS server are components to Samba 4. IMO, this is the biggest mistake they've made, and waiting would've been worth it if they could've gotten BIND to work (they couldn't, due to design differences between it and Windows AD/DNS frequency, chain of authority, etc. IIRC - not without making a mess).

      Integration of their own directory (based on a heimdal fork, IIRC) makes sense. But not DNS, at least as its implemented now. The DNS server is not BIND compatible and will not take a zone transfer, and doesn't even do reverse records yet (not properly, at least).

      THAT SAID, Samba 4 is still not hitting a 1.0 release. Who knows if 1.0 will mean 'beta, we're polishing' or 'production ready' - but I will bet you anything that it will be lacking documentation on how the tools work and have quite a few bugs. :(

      I've been a follower of Samba 4 since I was in college, and that was close to a decade ago. I don't think there's much hope of it ever being production ready, not anymore. They tried to do too much, and as a result, Samba 4 won't be all that usable in an existing Samba 3 network where DNS is also used - it just won't be possible without making a huge mess of things due to a pre-existing DNS system which won't be able to be fully compatible.

      Samba 4 works "OK" at home, but only if you've got very limited needs and you're starting from scratch. It's not nearly as flexible as Samba 3 (eg. different authentication backends, for instance) and from my point of view will not be 'production ready' for many years at its current pace.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    36. Re:No by CAIMLAS · · Score: 5, Interesting

      You realize that the guide you link is not only horribly out of date (over a year IIRC since alpha11 came out) and won't work with any of the current alpha (yeah, ALPHA) releases, but that Samba 4 has it's own dNS server now, basically requiring it operate autonomously from existing infrastructure?

      Yes, building/installing and then provisioning Samba 4 takes all of about 5 minutes. Now integrate it with something which was in existence before you decide to stroke your balls with Samba 4... good luck, let me know how it goes.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    37. Re:No by cyber-vandal · · Score: 3, Insightful

      An Apple/Microsoft site? What fucking planet are you on?

    38. Re:No by ulzeraj · · Score: 2

      That link describes the process of an old alpha11 installation. Samba is on RC4 last time I've checked.

      As soon as they release a stable version I'll finally get rid of Windows 2003 HVMs and replace them with faster and lighter Linux PVs.

    39. Re:No by ulzeraj · · Score: 2

      "That's right: the directory itself as well as a DNS server are components to Samba 4. IMO, this is the biggest mistake"

      The DNS is needed for Kerberos (for Windows at least) and other Active Directory features like GPO.

      "The DNS server is not BIND compatible and will not take a zone transfer, and doesn't even do reverse records yet (not properly, at least)."

      What? Of the 3 DNS implementations of SAMBA4 2 of them use Bind. One is a DLZ plugin and the other is a flat file generated by samba. Both need to be included on the named configuration file AND accept configuration of the zone through the MMC console on Windows. The third option uses an internal and very simple DNS server.

      "I've been a follower of Samba 4 since I was in college, and that was close to a decade ago."

      Sorry but based on the assumptions above you either didn't expressed your point well or you are lying.

      "it just won't be possible without making a huge mess of things due to a pre-existing DNS system which won't be able to be fully compatible."

      If you use the DLZ plugins or the flat file scheme you can just make a separate zone for AD. I haven't checked the scripts that are suposed to migrate a Samba3+LDAP structure to SAMBA4 but you could provide something regarding DNS related tasks to the script if they aren't already there.

    40. Re:No by sjames · · Score: 2

      Funny that, I have always managed to set and forget. It just works.

    41. Re:No by arkane1234 · · Score: 2

      The linux kernel has broken backwards compatibility?
      The drivers are still there... unless you're mistaking the Linux kernel with the glibc shared libraries.

      --
      -- This space for lease, low setup fee, inquire within!
    42. Re:No by Lev+Lafayette · · Score: 3, Insightful

      There is a degree that this comment is fair however. With FOSS if there is a problem, the admin can fix it even if it is poorly written. So if the admin *doesn't* fix it, or *can't*, yes, they do have to shoulder that responsibility. With proprietary software however, the admin can't make these changes. So if the software is bad, even if the user knows what is wrong there is little that they can do. Ultimately it *is* bad software, because software that you can't fix is a damaged good.

  2. What for? What do you need to do with it? by rtfa-troll · · Score: 5, Insightful

    It's important to realise that Active Directory has a bunch of overlapping different features. Samba4 is a great for part of it. Puppet is great for a different part of it (the ability to configure systems - like a superset of Active Directory Group Policies) LDAP covers some other parts etc. etc. You need to be really careful with this question because it is already loaded. Essentially, if the answer is "Active Directory" you are asking the wrong question. Your overall system administration story with Linux will be much better than Windows but you need to start thinking more from the beginning since it isn't always as obvious which tool is the right tool.

    --
    =~ s,(.*),<sarcasm>$1</sarcasm>,g if any_point_you_wish();
  3. Not yet. by phoenix_V · · Score: 5, Insightful

    Samba 4 is in it's Alpha release stage and is not recommended for production. That said it's a remains to be seen thing if it will be.
    It also depends a great deal on how and what you use AD for. For simple authentication you can use samba 3 + LDAP for that now.
    For programs that require AD not so much with either.

    1. Re:Not yet. by sprior · · Score: 4, Funny

      What a coincidence - Windows 8 just made its Alpha release too.

    2. Re:Not yet. by phoenix_V · · Score: 3, Informative

      I may have to put up a test copy then. I suspect there are few real world test cases being run, but an RC is far enough along
      for me to justify spending some cycles at work on it. There are more samba 3 + LDAP setups out there than people may realise
      and all of them stand to benefit from Samba 4.

    3. Re:Not yet. by Anonymous Coward · · Score: 5, Informative

      I've got four offices running various versions of Samba4 on ZFS, up to the latest git head pull. Some of those offices have been running alpha versions for two years without an issue, we mostly use it for roaming profiles and AD user management. Some portions don't work as well as a pure Microsoft environment may, like how many GPO setting changes appear to do nothing (like to try disabling CTRL+ALT+DEL before entering a password).

      It works for roaming profiles and it works well, but managing permissions (userid mapping, etc) between SMB4 and Linux is a pain the ass. Maybe I just haven't looked hard enough.

      Several of the AD configurators don't really do anything to the Samba4 installation, like managing shares. Changing ownership and making sure things are world-readable (like a common share) is also a kludge, something that shouldn't be true in a production ready software package.

    4. Re:Not yet. by jmintha · · Score: 5, Informative

      Unless I missed something, Samba 4 is not in Alpha release anymore. It has gone through beta, and is now in release candidate stage. (rc4 currently) It is designed as a full Active Directory implementation (including DNS and LDAP)

  4. Re:Dumb Question is Dumb by phoenix_V · · Score: 5, Informative

    Samba 4 *is* intended to be a full AD implementation. Currently it has a built in LDAP and Kerberos server set in the same daemon. That is a problem
    for some, like myself, that use Samba 3 + LDAP for shared auth. When complete is *should* be a fairly complete implementation of the AD specs, all
    of them. I have no idea how long this will take, or just how complete it is, but those are the design goals. All of this is a result of Microsoft releasing the
    full spec due to the European Union lawsuit.

  5. Re:Misunderstand of what SAMBA actually is...... by phoenix_V · · Score: 5, Informative

    I also commented above, Samba 4 *is* intended to be a full AD server implementation. It is using the documents Microsoft was forced to release
    as a result of an EU lawsuit.

    How complete an implementation it ends up being and how well it works will have to wait to be seen once it exits Alpha status and gets a few
    beta releases under it's belt.

    It's a whole new samba in the end.

  6. Nein. by doubledown00 · · Score: 5, Informative

    It works for small environments. But as you start getting above 50 people AD is the way to go for two reasons: 1) Less admin overhead time. Like it or not, AD "just works" unless you really snork it up; and 2) AD credentials integrate with more stuff and it's not tenable to have to maintain different user databases for each one. Sooner or later an enterprise will want exchange.,,,,,,,and spam filtering......and internet proxies etc. There are a multitude of products out there that will integrate with AD. To get the same with Linux / Samba (if it can be done at all) will require cobbling together services and solutions that will complicate your life. The bottom line: I went through my Linux zealotry phase too. Then I got a life and couldn't spend hours on end reading docs and fiddling with services and config files. Towards that end AD just simplifies user admin and frees you up to deal with other stuff. Linux has its place in the enterprise, but it ain't as an AD replacement.

    1. Re:Nein. by doubledown00 · · Score: 3, Informative

      >No need to fiddle with config files

      A simple browse through the forums quickly showed this is simply not true. Reading on how to enable Outlook integration confirmed that. Same old same old. It's alright if you have available time, a client willing to pay for the learning curve, and users comfortable with "out of mainstream" software. If you have clients like these, count yourself lucky.

  7. Back in the day .. well June by OzPeter · · Score: 4, Informative

    Slashdot discussion about Samba 4's Beta release Samba 4 Enters Beta

    --
    I am Slashdot. Are you Slashdot as well?
  8. Mixed results in a mixed environment by 93+Escort+Wagon · · Score: 4, Interesting

    We have, for many years, had a computing environment that, on the server side, is a mix of Red Hat Enterprise and Windows. Users and groups are (ostensibly) the same in both environments. The servers running Samba were in AD but were not acting as DCs.

    Samba has always handled the user accounts perfectly. Groups, on the other hand, break fairly frequently - and by "break" I mean it stops realizing that group "foo" on Windows is also group "foo" on Linux. Since most of our end users are on Windows boxes, and most of the authorization on the web server (my main concern) is handled using groups, this has been a big headache for me. Fortunately we were able to convince our manager it wasn't worth the continued investment in man-hours by our Linux and Windows guys to keep debugging this group issue, and we just pulled the plug - now everyone has to use scp/sftp, and everything works well.

    Admittedly this is a narrow use case I'm describing. Also I wouldn't be surprised if everything would be peachy if 100% of the AD stuff was being handled by Samba (and ONLY by Samba). But if this is a mixed environment, you should do some serious testing before making a decision.

    --
    #DeleteChrome
    1. Re:Mixed results in a mixed environment by ruir · · Score: 4, Informative

      Back here we are also handling the file servers, users and groups in a +10 thousand user infra-strutucture, and things work pretty well.

  9. NOT Recommended. by Anonymous Coward · · Score: 3, Insightful

    Samba may be able to do some of the windows file and printer sharing... even acting as a domain controller. BUT. Trust me. It will be hell to administer. For what you pay for Windows 2012 standard... with Hyper-V, and all the roles and services you just get... I dont see how you can compete with the ease of use and administrations. In the other-hand, if you are hard core UNIX/Linux and you need to support a few windows boxen in your environment.. then this is a great fit for you. Otherwise, stay away... far away. Anything you save in dollars you will spend in time... ten times over.

  10. Depends on what your requirements are by Nkwe · · Score: 2

    When you talk about alternatives to Active Directory you need to be specific as to what features of Active Directory you refer to. Active Directory is a lot of things: Distributed multi-master database, Authentication provider, Authorization provider, Configuration management system, and more. The Active Directory infrastructure provides: File services, Print services, Group policy, LDAP, DNS, DHCP, and other services.

    I haven't read in detail about Samba 4, and it appears that the Samba Wiki is down at the moment, but there is a decent description on the Fedora Project site. According to the Fedora site, Samba 4 includes the ability to be a domain controller and implements the Kerberos stack, but it is not clear that it provides the centralized configuration management that Active Directory does. This centralized management (Group Policy) and the ability to delegate administration (Organizational Unit based delegation) are very powerful features of Active Directory and what keep large organizations on the platform.

    If what all you are looking for is a shared account database and the ability for multiple workstations to authenticate against it, Samba 4 may be just the ticket. If however you are looking for a replacement for Active Directory at an enterprise level, I doubt it is there yet.

    1. Re:Depends on what your requirements are by domatic · · Score: 2

      It does. Install the RSAT tools on a Windows client and use to manage Group Policies on the Samba4 controller.

      http://www.microsoft.com/en-us/download/details.aspx?id=7887

      The HOWTOs for Samba4 all emphasize this.

  11. Samba 4 changes everythying by Zombie+Ryushu · · Score: 5, Informative

    Since 2005, The combination of OpenLDAP, Heimdal Kerberos, and Samba 3 has been a staple in the Linux Infrastructure, with other services such as FreeRadius, NFSv4, and AFS being tacked on for good measure.
    Many if not most Linux based utilities support LDAP. Unlike Samba 3, which functioned as an OpenLDAP based application, Samba 4 completely replaces OpenLDAP, and Heimdal Kerberos. Consider the following. Samba 3, while far beyond what Windows NT4 was ever capable of, expanded the NT4 Domain concept far beyond it' design limiations. In the most recent era, Samba 3.5 and 3.6, created an enhanced form of NT Domain Authentication just for interoperability with Windows 7. (This is very fascinating because it uses Windows 2003 Sign and Seal with NT4 Authentication, something NT4 never could do.) So it can be be said, while Windows 7 expressly drops support for Windows NT4, Windows 7 has express support for Samba 3.

    Yet the sword of Damoclese has swung over the head of Samba 3.x for a long while. Vista dropped support for NT4 Style System Policies, requiring administrators to resort to registry Trickery with Wine and third party policy tools such as NitroBit.

    Samba 3 brought about a form of NT Domain that supported LDAP as a backend, could use Kerberos for Authentication both for file shares and joining the Domain. (Although only other Samba clients could utilize the Kerberos aspects of Samba 3.) Could delf out policy by OU. With help from OpenLDAP, Samba 3 could overcome the single PDC limitation, and all Samba Domain Controllers could be writable PDCs because OpenLDAP supported Multi-master Replication.

    Beyond Samba, FreeRadius could use LDAP for authentication, Evolution could garner configuration information from OpenLDAP, for IMAP and SMTP settings (CalDAV Support was never added, even though there were feilds in the OpenLDAP schema for the three CalDAV based Calendar, Addressbook, and Task List.) This cooperated with eGroupware. Sudo could draw Sudoers from OpenLDAP, as could NSS. Each had their own unique Schemas.

    Unlike when Windows moved from NT4 Domains too AD, the movement was simple, before, you had no Directory Service, and now, boom! you do. In the Linux world LDAP has been a reality for a long time. Many applications are built to participate in Open Directory based Domains based on OpenLDAP Schemas. What happens if the Schemas conflict definitions? How will this be resolved?"

  12. The real world by Billly+Gates · · Score: 5, Insightful

    Ask yourself why?

    I used to be like you when I was 20 a decade ago. Here is what I have learned. Your enterprise hates change and looks at you as a financial burden and unnecessary cost unless you work for an IT company. If they have AD why switch? If what they have works don't mess with it.

    I saw this pop up last week on slashdot when Microsoft suggested business users stop using XP. Shockingly a decade ago on slashdot people would be laughing at everyone using a 11 year old platform who refuses change all based on Microsoft. Fast forward today you see folks under 35 freak out and DEMAND XP BE SUPPORTED FOREVER because changing is something you never ever do! Those over 35 got modded down saying upgrading is part of your job. The point is to put SAMBA 4 in you have to fight such people. They hate change and will cling to obsolete products as their behaviors in the last decade taught htem to lock versions with no updates and view everything as a cost center. Even a free product like Samba as such.

    If it breaks who do you sue? Who do you call for support? Will you be handed a pink slip with a boot up your ass out of the door if something breaks? AD is standard, it is used by everyone else, other products like SQL Server, Sharepoint, and Exchange use it. It is part of the proprietary eco system at work and even though slashdotters breathe down Linux as the end all for everything it is not in an already established enterprise environment.

    Just stick with AD. It is what you will be quizzed on and expected to know in your first job interview. If you do not know it they will find someone else who will. It is that simple.

    1. Re:The real world by smash · · Score: 2

      How so? You're buying new hardware anyway, presumably. If your enterprise is on volume licensing, then the licenses already exist and are transferrable...

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  13. Samba4 works great for small offices by fang0654 · · Score: 5, Informative

    So far I've set up several small offices using Samba4 as a drop in replacement for Active Directory. Here is what I've found it does well: Windows Authentication, AD DNS, Group Policy, Easy scripting (python tools and libraries). What it doesn't do well yet: Replicating AD with other servers. I haven't had much experience using subdomains, etc, mainly because I haven't been able to get it to replicate. But for a small office, it works fine.

  14. Rather than looking at a replacement... by HerculesMO · · Score: 4, Insightful

    Look at the use case.

    I know too many Windows and Linux folks who try to shoehorn one way of doing things so it runs the way they want them to. This post reeks of that.

    Find the best business reason to use one thing or another. I don't disqualify MS because it's not open source, or Linux because it's free. There are costs to doing everything, and usually made up outside of what infrastructure you decide on.

    That said, Windows is best on the desktop because of Group Policy, its extension into things like System Center, IT Asset Management systems, reporting, workflow, automation, etc. I know it "can be done" with Linux but the process is usually smushed together and kludgy. Windows is simpler because of the software that supports it, many of them made by MS themselves.

    I will stick with *nix for my backend requirements, and Windows for my front end. Until something changes drastically, I don't see much point in trying Linux on the desktop -- it's clearly not its strong suit.

    --
    The price is always right if someone else is paying.
    1. Re:Rather than looking at a replacement... by HerculesMO · · Score: 2

      Fair point... but if you're talking about having a server with Windows clients and trying to supplant AD, it's a futile exercise. It all works together really well because it's designed to. Once you lose control of being able to administer huge swaths of clients via GPO, you lose an organizational edge.

      Unless you're a software firm intent on showing you can do without. But most people aren't software firms in that position.

      --
      The price is always right if someone else is paying.
  15. What "Group Policy is" by Zombie+Ryushu · · Score: 4, Interesting

    Keep in mind that "Group Policy" is, truly, is merely Windows Registry keys stored in the LDAP database in Active Directory. Samba 4 will store these in it's LDAP database. Something Samba 3.x+OpenLDAP Couldn't do.

    Linux has no Registry, Linux approaches the Group policy concept differently by having application level Sub-Schemas that have to be imported into the tree. Linux applications then have to be configured to call on the LDAP Database instead of using it's local files. There are OpenLDAP Schemas for:

    Sudoers
    Evolution
    eGroupware/phpGroupware
    DHCP
    Samba 3 of course
    Bind (Deprecated)
    Posix Accounts (/etc/password, NIS and NFS related)
    CUPS (Printers)
    Kerberos
    Posix
    Puppet
    urpmi (Exclusive to Mandriva)
    Apache (Can store httpd cluster information)
    Zimbra ...and more.

    When Samba 4 is released, you have to import all these OpenLDAP entries into the Samba 4 LDAP tree.

  16. Re:Samba3 could fool XP by tibit · · Score: 2

    I don't think these days there's much "configuring and reading documentation". There's one samba-provided registry file you need to import on every Windows Vista/7/8 host before joining them to the domain, and that' sit. It pretty much works. Server-based printers w/ drivers don't work for some printers because said printer drivers are buggy and won't take anything but only certain windows server versions. If you use IPP printing, things are fine. I still keep drivers on the server and push them to clients using windows-native print server configurator.

    --
    A successful API design takes a mixture of software design and pedagogy.
  17. Depends on what you want to do... by bevenhall · · Score: 2

    Take a look at http://www.zentyal.org/ .

  18. Re: Puppet for config/package to Windows? by dodobh · · Score: 3, Informative

    Puppet has a server and client setup. The Puppet server process is Unix only.

    MSI packages are supported. I'm not sure about group policies yet.

    --
    I can throw myself at the ground, and miss.
  19. The closed source bit of Samba... by Shuntros · · Score: 3, Interesting

    I realise Novell aren't exactly a powerhouse any more, but does anyone else remember about 5 years ago when they released Domain Services for Windows? That was basically Samba 4, but using eDirectory and NSS (that's a proper man's filesystem, for you young kids) as the back end. I only played with it briefly whilst at my last employer, but damn did it rock... All the NSS clustering and good bits of Novell tech were totally transparent. The only time you knew you were talking to a Linux box was if you opened up a DC in MMC and looked at its properties, where it said something along the lines of "SuSE Linux Open Enterprise Server".

    Fairly obvious that Jeremy A was largely responsible for DSfW, just a shame that stuff was most likely locked up as Novell IP and off limits to Samba 4.

  20. AD has serious problems by whois · · Score: 2

    I don't think it's bad for what it does, but the inability to rollback changes or even to know what's been changed is a serious oversight. There are third party tools that fix this (Google search for active directory change control), but for a large scale environment you shouldn't have to rely on third parties to make a tool usable.

    Contrast this to a UNIX based ldap server (openldap) where the entire directory can be saved and reloaded as a text file over and over again.

    AD also has the tendency to bury lots of information behind properties windows that have 30 or so tabs. Even if you look at all of those you'll still miss disconnected pieces like group policies or if an AD account has an exchange account.

    I don't think "replace AD with Samba" is a good idea though. If you're going to be using lots of Windows systems then you're better off managing them with the tools provided by the vendor.

  21. Re:Dumb Question is Dumb by Anonymous Coward · · Score: 5, Informative

    ...it has a built in LDAP and Kerberos server set in the same daemon. That is a problem...

    The reason is that M$'s implementation of things like LDAP is broken. So a standard LDAP (or Kerberos) server is not going to work.

    E.g., OUs that really aren't (In AD, OUs are just cosmetic). There are attributes associated with objects that break LDAP spec. etc.

    Microsoft broke Kerberos just enough to prevent using a standard Kerberos server setup, but works to use std. clients against AD.

    Microsoft broke DNS in the 90s. They allowed things like underscores in names which are illegal according to spec-- all standard DNS servers now allow underscores to allow interop with the broken M$ implementation. There is even a DNS RFC that comes just short of naming M$ which calls out that they butchered and abused DNS in their AD implementation-- this abuse interoperates with current DNS servers, though. so this isn't a reason for including their own DNS.

    So, rather than breaking every other existing software package, or trying to maintain a bunch of patch sets, Samba just includes its own implementation of the above with breakage compatible with M$'s breakage.

  22. Re:Typical Instructor by tokencode · · Score: 2, Insightful

    Oh really? I ran multiple data centers and managed over 3,000 Windows Servers on 150 independent AD domains, Windows server is every bit as capable as Linux for almost all functions. In some, it excels at far beyond linux, such as managing enterprise networks via Active Directory. As with anything, it's about selecting the right tool for the job. Your statement "only case where I would consider using Windows Server in place of a Linux Server is if I could only hire grade 10 IT nerds who have no idea what there doing" simply goes to show that you are the grade 10 IT nerd who has no idea what he is doing.

  23. Re:Typical Instructor by Murdoch5 · · Score: 3, Interesting

    I know exactly what I'm talking about, in my experience the only people who blast Linux are really covering up the fact they don't understand it. Windows is capable because Microsoft slapped a over bloated GUI on. I've used many Windows and Linux servers and I have yet to see a case where Linux wasn't the better choice in 99% of all cases. That 1% is for the "special" software that some VP wants installed that only runs on Windows.

    I've had many people complain that they have to learn the command line to use Linux and they need to understand how the network works and etc.... but I tell them to grab a book and learn. Out out the 100's of Linux servers I managed I would down grade 0 of them to Windows, from my personal experience Windows gets in the way and allows slop on my network, Linux keeps it neat and running fast, even the master Domain controller which is used for something like 1000 people to log onto the network is Linux based. Before I started the Domain controller was a Windows Server and the login time wasn't horrible, after I upgraded it to a Linux server we shaved about 1/2 second off the login times and another 20% on resource use. So my statement holds, If you don't want to use Linux for your network then you either don't understand it or you don't want to put effort in upfront.

  24. Re:Something LIKE AD for linux desktops... by anon+mouse-cow-aard · · Score: 2

    Fair enough, but to admin a Linux network, LDAP to Samba is like replacing a bicycle with a 30 ton truck. Sure, it is still transportation, but the operating costs are a little different. On Linux, you don't need it. You don't need NT shares (just use sshfs) you don't want group profiles (just use files in /etc), things done with Samba are usually done far more simply on Linux without it. Once you have it in place, you need to feed it... that complexity costs admin time forever. Sure, if you are stuck with a mixed environment, then it is necessary, but if you can avoid it, it is better to apply a suite of lighter tools.

  25. Re:hahahahahah by rubycodez · · Score: 4, Informative

    to do which functions and to scale to what size? login authentication for 100 users in a medium sized business works very well, the medical office management company I set up with vmware and linux servers (but windows desktops) has been working very well that way for 3 years already.....

  26. Maybe for quite small client counts or custom sw by Craig+Ringer · · Score: 2

    Overall, no, it isn't even close. Samba 4 may offer the core features of AD its self, but it doesn't offer all the powerful management and Group Policy tools, system deployment facilities, etc. Some of it could probably be hacked in on top, but IMO, it's really not worth it.

    I was running a Samba3 domain on an LDAP directory for years. It was OK, but always had annoying warts and problems, plus it was a pain to run. Automatic printer drive deployment was fiddly and never that reliable. Group Policy wasn't even an option.

    Eventually I gave in and moved over to win2k8. As a heavy Linux user and long-time *nix sysadmin, I have to say, for running Windows networks I am NEVER going to use anything else. Sure it has its issues, but it's reliable and it has an amazing array of system management tools.

    The Microsoft Deployment Toolkit alone is worth running a Win2k8 box for : just PXE boot your clients and have them auto-re-install themselves, install software and printers, change settings, add local users, install updates, and reboot almost ready to use. You can do this with a USB key and a manually copied Windows PE image, but it's fiddly and annoying.

    Then there's Group Policy. Group Policy actually makes me want to use Windows. It makes me want to get rid of my Linux thin clients - despite their reliability - because with Group Policy I can just push changes out to all machines (or defined subsets) with a few simple changes in a central directory. It's seriously impressive.

    About the only irritation is that so many software packages use custom installers rather than the Microsoft Installer (MSI), so it's not always easy to roll them out via Group Policy server push. Some of those that do (I'm looking at you, Adobe) don't make it easy to just download their updates whenever they come out and push them via Group Policy; you have to go and check for updates by hand. Fail.

    Despite the irritations, there's just nothing like it for booting a client off the network and having it come up ready to use. Redirect the user's desktop and documents folder and you don't even need to worry about the machine breaking or having client backups; you back up the redirected folders, and if the machine breaks you just re-image it because it has no local data of any importance on it.

    The sad fact is that tools like this are no fun to work on, so they're not something we're going to be seeing in Linux/BSD land in a hurry.

  27. Re:hahahahahah by ls671 · · Score: 2

    Fuck proprietary AD calls. LDAP is the standard to code apps with. AD has an LDAP interface by the way.

    --
    Everything I write is lies, read between the lines.
  28. Re:Something LIKE AD for linux desktops... by Zombie+Ryushu · · Score: 2

    You don't understand. AD IS LDAP. The Samba 4 AD Server runs OpenLDAP and Heimdal Kerberos.The file /etc files direct the machine to look to LDAP for configuration and policy instructions.

  29. Re:Dumb Question is Dumb by kevmeister · · Score: 4, Informative

    Microsoft broke DNS in the 90s. They allowed things like underscores in names which are illegal according to spec-- all standard DNS servers now allow underscores to allow interop with the broken M$ implementation. There is even a DNS RFC that comes just short of naming M$ which calls out that they butchered and abused DNS in their AD implementation-- this abuse interoperates with current DNS servers, though. so this isn't a reason for including their own DNS.

    Not really correct. The DNS specification in RFC1035 from 1987 allows the use of underscores in names. This has never changed.

    This is a common misconception because the use of underscores in hostnames IS prohibited and this remains true. Microsoft chose the use of underscores in thier AD implementation to remove the possibility of name-space collision with hostnames. BIND, the most popular DNS server in use only permits underscores in hostnames when an option is set to override the default.

    Microsoft has broken lots of standards either because they didn't understand them or found it advantageous to ignore them, but this is NOT one of them.

    --
    Kevin Oberman, Network Engineer, Retired
  30. Linux-based shares by Compaqt · · Score: 4, Insightful

    Well, OK, granted for personal machines.

    But you should at least be able to browse the available servers, right? What I see is the community will continue to put out buggy Windows interop software because M$ can't just hand over the AD source.

    Anyway, like I said in another place in the discussion, the Linux community seems to have went about this wrong.

    It would have been better to come up with a networking addon for Windows clients to allow them to easily browse and connect to resources provided by Linux servers in a hierarchical domain arrangement (basically, Domain Name System). So: ibm.com, fl.ibm.com, miami.fl.ibm.com, files1.miami.ibm.com, etc.

    Auth handed by OpenLDAP and Kerberos. Remote login by RADIUS.

    Some of that stuff would need some polishing around the edges plus integration, but again, writing your own Windows client DLL should seem to be much easier than divining and decoding messages passed around an AD network.

    Also: it would have been nice to really think outside the box. Like, how about allowing users to browse resources instead of being concerned with which server a resource happens to reside on?

    --
    I'm not a lawyer, but I play one on the Internet. Blog