Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winbind disable flags aren't actually set when $winbind=false #29

Open
bschonec opened this issue Dec 11, 2015 · 1 comment
Open

Winbind disable flags aren't actually set when $winbind=false #29

bschonec opened this issue Dec 11, 2015 · 1 comment

Comments

@bschonec
Copy link

The code below sets the winbind auth flags only when you choose $winbind=true. Unfortunately, this prevents the module from disabling winbind and winbind authentications because the disable flags never get assigned.

this enables or disables winbind

  $winbind_flg = $winbind ? {
    true    => '--enablewinbind',
    default => '--disablewinbind',
  }

Unfortunately, "--disablewinbind" never gets put into $winbind_flags because $winbind=false.

  $winbind_flags = $winbind ? {
    true    => "${winbind_flg} ${winbindauth_flg} ${smbsecurity_val} ${smbrealm_val} ${smbworkgroup_val} ${winbindjoin_val} ${smbservers_val}",
    default => '',
  }

I would think that the enable/disable winbind flags should ALWAYS be assigned into $winbind_flags string and the true/false check in the second code snippet is unnecessary because we've already set the appropriate state in the first snippet.

@bschonec
Copy link
Author

This bug applies also to $winbindauth_flg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant