Cannot log on to the samba server?

Source: Internet
Author: User
Cannot log on to the samba server? -- Linux general technology-Linux technology and application information. For details, refer to the following section. After the samba server is added to the 2003 Domain Network in ads mode, only anonymous users can access the shared directory, but the domain user account cannot be used to log on to the samba server, the logon interface is displayed every time you log on. What is the configuration error? The configuration file is as follows:
Smb. conf file Configuration:
[Global]
Workgroup = lycb
Server string = File Server
Netbios name = Sambaserver
Security = ads
Hosts allow = 192.168.1. 127.
Encrypt passwords = yes
Guest account = linux
Log file =/var/log/samba/% m. log
Max log size = 50
Password server = 192.168.1.11
Idmap uid = 15000-20000
Idmap gid = 15000-20000
Winbind enum groups = yes
Winbind enum users = yes
Winbind separator =/
Template homedir =/homes/% D/% U
Template shell =/bin/bash
Realm = lycb. local

[Homes]
Comment = Home Directories
Browseable = no
Writable = yes
Path =/home/% U
Valid users = % U


[Share]
Comment = All user's share directory
Path =/usr/share
Public = no
Guest OK = yes
Read only = yes

[Program]
Comment = Program Files
Path =/etc/program
Valid users = @ administrators linux 99 root
Public = no
Writable = yes


[Printers]
Comment = All Printers
Path =/usr/spool/samba
Browseable = no
Guest OK = no
Writable = no
Printable = yes

Krb5.conf configuration file:
[Logging]
Default = FILE:/var/log/krb5libs. log
Kdc = FILE:/var/log/krb5kdc. log
Admin_server = FILE:/var/log/kadmind. log

[Libdefaults]
Default_realm = LYCB. LOCAL
Dns_lookup_realm = false
Dns_lookup_kdc = ture
Ticket_lifetime = 24 h
Forwardable = yes

[Realms]
LYCB. LOCAL = {
Kdc = 192.168.1.11: 88
Admin_server = 192.168.1.11: 749
Default_domain = lycb. local
}

[Domain_realm]
. Lycb. local = LYCB. LOCAL
Lycb. local = LYCB. LOCAL

[Kdc]
Profile =/var/kerberos/krb5kdc/kdc. conf

[Appdefaults]
Pam = {
Debug = false
Ticket_lifetime = 36000
Renew_lifetime = 36000
Forwardable = true
Krb4_convert = false
}

Nsswitch. conf configuration file:
Passwd: files winbind
Group: files winbind
Shadow: files winbind


Hosts: files dns wins
Networks: files dns


Protocols: db files
Services: db files
Ethers: db files
Rpc: db files
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.