Anonymous bind on samba4

I don’t know if it is a feature or a bug and since the documentation doesn’t state on it I preferred to ask.

The documentation : http://docs.nethserver.org/projects/nethserver-devel/en/v7rc/nethserver-dc.html

my question is, it is normal to be able to authenticate dokuwiki on the AD of nethserver with an anonymous bind, of course since it is anonymous I cannot change the password of users :slight_smile:

the code of dokuwiki

  $conf['authtype']       = 'authad';

  // configure your Active Directory data here
  $conf['plugin']['authad']['account_suffix']     = '@stephdl.dyndns.org';
  $conf['plugin']['authad']['base_dn']            = 'DC=stephdl,DC=dyndns,DC=org';
  $conf['plugin']['authad']['domain_controllers'] = '192.168.12.68'; //multiple can be given

On my samba4 I can’t bind anonymously. It complains:

ldapsearch -LLL -H ldap://192.168.5.44 -b DC=neth,DC=eu -D '' -w '' '(objectClass=user)'  dn
Operations error (1)
   Additional information: 00002020: Operation unavailable without authentication

Are you sure dokuwiki is doing anon bind?

I must admit I don’t know samba4…the code above is only what I set in dokuwiki…no more settings like a password or a user

I will try your command once at home

1 Like

Probably docuwiki binds AD with the user’s credentials

1 Like

same here

[root@NS7DEV5 ~]# ldapsearch -LLL -H ldap://192.168.12.68 -b DC=neth,DC=eu -D '' -w '' '(objectClass=user)'  dn
Operations error (1)
Additional information: 00002020: Operation unavailable without authentication