Folder prompts username and password

jucelio_rosa

Dabbler
Joined
Jan 11, 2020
Messages
15
Boa tarde.

Após uma falha de energia, toda vez que tento acessar uma pasta, ele solicita nome de usuário e senha. Eu uso autenticação no AD. Mesmo que eu digite o nome de usuário e a senha, não consigo acessá-lo. Percebi que o serviço dos Serviços de Diretório está desabilitado. Não consigo habilitá-lo. Tento ativar, mas não posso. Pode ser isso ? O que fazer ?
 

jucelio_rosa

Dabbler
Joined
Jan 11, 2020
Messages
15
Good afternoon.

After a power failure, every time I try to access a folder, it prompts for username and password. I use authentication in AD. Even if I enter the username and password, I can't access it. I noticed that the Directory Services service is disabled. I can't enable it. I try to activate, but I can't. Can be it ? What to do ?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,545
For 11.2 run the following commands in sequence:
rm /etc/directoryservice/activedirectory/config
sqlite3 /data/freenas-v1.db "UPDATE directoryservice_activedirectory SET ad_enable=1"
service ix-hostname start
service ix-kerberos start
service ix-kinit start
klist - verify that you have a kerberos ticket for the AD domain
service ix-pre-samba start
net -k -d 3 ads join - save output of this to post here if the domain join fails
service samba_server onerestart

The above commands do not apply for 11.3 and later.
 

jucelio_rosa

Dabbler
Joined
Jan 11, 2020
Messages
15
Good afternoon.

The problem was already solved.

First I tried to follow the steps you indicated, but to no avail.

So I was instructed to check if AD is working well, if AD Sync was working well and then try again to enable the service.
 

Attachments

  • tela_freenas.png
    tela_freenas.png
    49.8 KB · Views: 225
Top