Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #179321 > unrolled thread
| Started by | Joshua Schaeffer <jschaeffer0922@gmail.com> |
|---|---|
| First post | 2017-03-25 21:20 +0100 |
| Last post | 2017-03-25 23:40 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
Samba domain provisioning tools issues provisioning error on clean Jessie install Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-03-25 21:20 +0100
Re: Samba domain provisioning tools issues provisioning error on clean Jessie install Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-03-25 22:30 +0100
Re: Samba domain provisioning tools issues provisioning error on clean Jessie install Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-03-25 23:40 +0100
| From | Joshua Schaeffer <jschaeffer0922@gmail.com> |
|---|---|
| Date | 2017-03-25 21:20 +0100 |
| Subject | Samba domain provisioning tools issues provisioning error on clean Jessie install |
| Message-ID | <tp0ki-5Vo-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Ahoy all, I'm experiencing an issue when installing Samba on a fresh Debian Jessie install and looking to see if others have encountered this issue, if there is an obvious fix/dependency I'm missing, or if a bug should be reported.
*Problem description*
After a clean install of Debian Jessie and making sure all packages are updated, I installed samba and then ran the samba-tool to provision a new domain. I get the following error:
root@firebat-vm:~# samba-tool domain provision --use-rfc2307 --interactive
Realm [HARMONYWAVE.COM]: HARMONYWAVE.COM
Domain [HARMONYWAVE]: harmonywave
Server Role (dc, member, standalone) [dc]: dc
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: SAMBA_INTERNAL
DNS forwarder IP address (write 'none' to disable forwarding) [10.1.30.2]: 10.1.30.2
Administrator password:
Retype password:
*ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/smb.conf. Please remove the smb.conf file and let provision generate it*
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 434, in run
nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 2022, in provision
sitename=sitename, rootdn=rootdn, domain_names_forced=(samdb_fill == FILL_DRS))
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 603, in guess_names
raise ProvisioningError("guess_names: 'realm =' was not specified in supplied %s. Please remove the smb.conf file and let provision generate it" % lp.configfile)
I remove the /etc/samba/smb.conf file as the error suggests and then run the exact same command again and it provisions successfully. I just think that a clean install of Jessie should not throw this error the first time it is run. I've Googled and found a few pages and both Ubuntu and Debian bugs related to this exact error message, but it seems that most of them are related to upgrading the Samba package or after reboots, not when running the samba-tool utility.
After some further testing I found that I can just remove the /etc/samba/smb.conf file immediately after installing Samba and before running the samba-tool utility. It appears that the mere fact that an smb.conf file exists is the issue. Obviously this issue isn't that critical as the error tells you the problem and even how to fix it, it just seems odd that after a fresh install a provision does not work correctly, especially since it specifically asks for the realm.
*Steps to reproduce*
1. Install a clean OS of Debian Jessie
2. Upgrade all packages (apt-get update && apt-get -y dist-upgrade)
3. Install samba (apt-get install samba)
4. Run the samba-tool utility (samba-tool domain provision --use-rfc2307 --interactive) and answer the questions asked by the script.
*TL;DR*
I guess the main question is: "Is a user expected to remove the smb.conf file before running the samba-tool utility to provision a domain? If so, I have not seen this in any documentation (Debian, Samba, Ubuntu or otherwise). Should this be considered a bug? The domain provision process expects that if the smb.conf file exists it is already setup for the domain being provisioned."
Thanks,
Joshua Schaeffer
[toc] | [next] | [standalone]
| From | Cindy-Sue Causey <butterflybytes@gmail.com> |
|---|---|
| Date | 2017-03-25 22:30 +0100 |
| Subject | Re: Samba domain provisioning tools issues provisioning error on clean Jessie install |
| Message-ID | <tp1q1-6Dh-1@gated-at.bofh.it> |
| In reply to | #179321 |
On 3/25/17, Joshua Schaeffer <jschaeffer0922@gmail.com> wrote: > Ahoy all, I'm experiencing an issue when installing Samba on a fresh Debian > Jessie install and looking to see if others have encountered this issue, if > there is an obvious fix/dependency I'm missing, or if a bug should be > reported. > > *Problem description* > After a clean install of Debian Jessie and making sure all packages are > updated, I installed samba and then ran the samba-tool to provision a new > domain. I get the following error: > > root@firebat-vm:~# samba-tool domain provision --use-rfc2307 --interactive > Realm [HARMONYWAVE.COM]: HARMONYWAVE.COM > Domain [HARMONYWAVE]: harmonywave > Server Role (dc, member, standalone) [dc]: dc > DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) > [SAMBA_INTERNAL]: SAMBA_INTERNAL > DNS forwarder IP address (write 'none' to disable forwarding) [10.1.30.2]: > 10.1.30.2 > Administrator password: > Retype password: > *ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - > ProvisioningError: guess_names: 'realm =' was not specified in supplied > /etc/samba/smb.conf. Please remove the smb.conf file and let provision > generate it* > < snipped for brevity > > > I remove the /etc/samba/smb.conf file as the error suggests and then run the > exact same command again and it provisions successfully. I just think that a > clean install of Jessie should not throw this error the first time it is > run. I've Googled and found a few pages and both Ubuntu and Debian bugs > related to this exact error message, but it seems that most of them are > related to upgrading the Samba package or after reboots, not when running > the samba-tool utility. > > After some further testing I found that I can just remove the > /etc/samba/smb.conf file immediately after installing Samba and before > running the samba-tool utility. It appears that the mere fact that an > smb.conf file exists is the issue. Obviously this issue isn't that critical > as the error tells you the problem and even how to fix it, it just seems odd > that after a fresh install a provision does not work correctly, especially > since it specifically asks for the realm. > > *Steps to reproduce* > > 1. Install a clean OS of Debian Jessie > 2. Upgrade all packages (apt-get update && apt-get -y dist-upgrade) > 3. Install samba (apt-get install samba) > 4. Run the samba-tool utility (samba-tool domain provision --use-rfc2307 > --interactive) and answer the questions asked by the script. > > > *TL;DR* > I guess the main question is: "Is a user expected to remove the smb.conf > file before running the samba-tool utility to provision a domain? If so, I > have not seen this in any documentation (Debian, Samba, Ubuntu or > otherwise). Should this be considered a bug? The domain provision process > expects that if the smb.conf file exists it is already setup for the domain > being provisioned." Howdy, grin.. As most usual, I don't have a fix, but do have an uneducated observation and a question back. The observation: It does seem like maybe that file shouldn't exist at the beginning if it's causing that kind of thing where the immediate, successful fix is to delete it. Like I said, though.. that's an "uneducated" observation. Perhaps there's a necessary evil of it pre-existing. Perhaps maybe (maybe not) there's a conscious intention that it's easier to delete that file per that error message *if* that error occurs versus the headaches that might result if that file was not in place for most other users universally. *?* :) The question: If I get a wild hair later and get a chance to attempt this, do you mind if I "borrow" your domain name there? I don't have anything to test with otherwise. I've attempted samba in the past, but I don't think it's installed right now so this would be attempted from a clean install..... Thank you *in advance* :) Cindy :) -- Cindy-Sue Causey Talking Rock, Pickens County, Georgia, USA * runs with duct tape *
[toc] | [prev] | [next] | [standalone]
| From | Joshua Schaeffer <jschaeffer0922@gmail.com> |
|---|---|
| Date | 2017-03-25 23:40 +0100 |
| Subject | Re: Samba domain provisioning tools issues provisioning error on clean Jessie install |
| Message-ID | <tp2vM-7j9-19@gated-at.bofh.it> |
| In reply to | #179326 |
[Multipart message — attachments visible in raw view] — view raw
> The observation: It does seem like maybe that file shouldn't exist at > the beginning if it's causing that kind of thing where the immediate, > successful fix is to delete it. Like I said, though.. that's an > "uneducated" observation. > > Perhaps there's a necessary evil of it pre-existing. Perhaps maybe > (maybe not) there's a conscious intention that it's easier to delete > that file per that error message *if* that error occurs versus the > headaches that might result if that file was not in place for most > other users universally. *?* :) This is certainly reasonable. The file exists because you install the Samba package which installs a default smb.conf file. My initial assumption is that it would indeed cause more issues to not be there, then to be there and require to delete it before provisioning a new domain. Perhaps a more complex/time consuming solution would be to enhance the guess function that is performed when a domain is provisioned. I've never been involved with Samba development so I have no clue what effort this would take. ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - *ProvisioningError: guess_names*: 'server role=standalone server' in /etc/samba/smb.conf must match chosen server role 'active directory domain controller'! Please remove the smb.conf file and let provision generate it That is also an upstream issue versus a Debian issue. > > The question: If I get a wild hair later and get a chance to attempt > this, do you mind if I "borrow" your domain name there? I don't have > anything to test with otherwise. I've attempted samba in the past, but > I don't think it's installed right now so this would be attempted from > a clean install..... > Sure, feel free use the domain for testing. I do own the rights to the name and the domain itself so you wouldn't be able to do anything public with it :).
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web