OMV6 connect to windows 2012 Active Directory

    • Offizieller Beitrag

    I have a 6 beta connected to my ad server. I used this and may have made some edits. RE: Active Directory / LDAP Revisited Users and groups show in shares etc. I can access and open files but not save them yet. When I try to add security = ads to smb extras in the web ui I get a 500 internal server error. Diagnostics only shows "Please apply the config change first".


    As far as I can see security = ads is still a valid argunent. https://www.samba.org/samba/do…/man-html/smb.conf.5.html


    Thanks

    • Offizieller Beitrag

    Assuming security = ads is in the smb section of config.xml, what is the output of: omv-salt deploy run samba

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Here is the output.

    Sorry for the formatting if it didn't work.

    smbd not starting is the problem.

    Thanks

    • Offizieller Beitrag
    • Offizieller Beitrag

    smbd not starting is the problem.

    According to Red Hat, you might have to add some idmap configuration. This is what the posted solution was:


    1) Ensure the id map is configured in smb.conf, like:

    Code
    [global]
    ...
    idmap config * : backend = tdb
    idmap config * : range 10000-199999
    idmap config DOMAIN : backend = autorid
    idmap config DOMAIN : range = 200000-2147483647

    2) Map group BUILTIN\Guests to group nobody with following command:

    Code
    # net -s /dev/null groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin

    3) Restart samba services and replicate the issue:

    Code
    # systemctl restart {smb,nmb}
    # smbclient //$(hostname)/<share> -U DOMAIN\\<user> -d10

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    According to Red Hat, you might have to add some idmap configuration. This is what the posted solution was:


    1) Ensure the id map is configured in smb.conf, like:

    Code
    [global]
    ...
    idmap config * : backend = tdb
    idmap config * : range 10000-199999
    idmap config DOMAIN : backend = autorid
    idmap config DOMAIN : range = 200000-2147483647

    2) Map group BUILTIN\Guests to group nobody with following command:

    Code
    # net -s /dev/null groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin

    3) Restart samba services and replicate the issue:

    Code
    # systemctl restart {smb,nmb}
    # smbclient //$(hostname)/<share> -U DOMAIN\\<user> -d10


    According to Red Hat, you might have to add some idmap configuration. This is what the posted solution was:


    1) Ensure the id map is configured in smb.conf, like:

    Code
    [global]
    ...
    idmap config * : backend = tdb
    idmap config * : range 10000-199999
    idmap config DOMAIN : backend = autorid
    idmap config DOMAIN : range = 200000-2147483647

    2) Map group BUILTIN\Guests to group nobody with following command:

    Code
    # net -s /dev/null groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin

    3) Restart samba services and replicate the issue:

    Code
    # systemctl restart {smb,nmb}
    # smbclient //$(hostname)/<share> -U DOMAIN\\<user> -d10

    Thanks for the reply. Can you post a link to that article?

    • Offizieller Beitrag

    Can you post a link to that article?

    I copied everything from it since you have to have a redhat account (I do) to see it. But here is the link - https://access.redhat.com/solutions/4367771

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    From the man page linked in omv6/#/services/smb/settings

    Code
    security = domain  ### in "Extra options"

    Causes server error 500 as above. So catch 22, back to the above.


    Thanks

    • Offizieller Beitrag

    This might be useful for this or other things that get set by omv scripts.

    https://serverfault.com/questi…-to-smb-conf-via-a-script

    Will try later.

    Thanks


    FYI /etc/samba/smb.d/ad.conf does work. But not for security = domain. Tested by moving settings from extra options to ad.conf and adding the include in extra options. Tested on 5 and 6.

  • For good reasons a template for issue reports was created but not used for this case.

    Volker usually refuses to read long forum threads.

    May I suggest to close & reopen it using the template?

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • its used when you select option "bug report"


    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • Hm it just came up blank before.

    maybe due to a temporary outage or slow response. Issue templates are in use for OMV since :

    Update issue templates committed on Dec 16, 2020


    Thanks for the new issue, would you mind to move the forum link to the section "

    Reference to Forum

    URL link to forum post"?


    The first part until "Describe the bug" can be removed

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • good to hear, I've closed the related issue in github

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!