LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2019, 03:32 AM   #1
Umeraf
LQ Newbie
 
Registered: Nov 2018
Posts: 25

Rep: Reputation: Disabled
samba server joining Active directory server 2008 error


i try to join samba server to active director server 2008 r2.i set every thing in server server smb configuration and kerberos configuration done
/etc/samba/smb.conf/

[global]

# define the netbios name of the domain

workgroup = CAMPUS

# define the pptp server netbios name

netbios name = server

# define the AD domain name

realm = campus.local

# server description

server string = pptpd Server

# printer stuff

printcap name = /etc/printcap

load printers = no

cups options = raw

# log file stuff

log file = /var/log/samba/%m.log

max log size = 50

# must set to ads

security = ads

# address of domain controller

password server = x.x.x.x

# enable encrypt passwords

encrypt passwords = yes

# default setting

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# not to be a master browser

domain master = no

preferred master = no

# address of the WINS server

wins server = x.x.x.x

dns proxy = no

require this line to join the domain

client use spnego = yes

# winbind stuff

idmap uid = 50001-550000

idmap gid = 50001-550000

;winbind separator = +

winbind nested groups = Yes

winbind enum users=yes

winbind enum groups=yes

template shell = /bin/false

winbind use default domain = yes

nt pipe support = no

#smb ports=139

/etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log

[libdefaults]
default_realm = campus.local
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 24h
forwardable = yes

[realms]
campus.local = {
kdc = campus.local:88
admin_server = campus.local:749
default_domain = campus.local
}

[domain_realm]
.campus.local = campus.local
campus.local = campus.local

[kdc]
profile = /var/kerberos/krb5kdc/kdc.conf

[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}

when i try to joing following output shown
net ads join -U Administrator@campus.local -d 5


libnet_JoinCtx: struct libnet_JoinCtx
in: struct libnet_JoinCtx
dc_name : NULL
machine_name : 'SERVER'
domain_name : *
domain_name : 'campus.local'
account_ou : NULL
admin_account : 'Administrator@campus.local'
machine_password : NULL
join_flags : 0x00000023 (35)
0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS
0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME
0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT
0: WKSSVC_JOIN_FLAGS_DEFER_SPN
0: WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED
0: WKSSVC_JOIN_FLAGS_JOIN_UNSECURE
1: WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED
0: WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE
0: WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE
1: WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE
1: WKSSVC_JOIN_FLAGS_JOIN_TYPE
os_version : NULL
os_name : NULL
create_upn : 0x00 (0)
upn : NULL
modify_config : 0x00 (0)
ads : NULL
debug : 0x01 (1)
use_kerberos : 0x00 (0)
secure_channel_type : SEC_CHAN_WKSTA (2)
interpret_string_addr_internal: getaddrinfo failed for name campus.local [Name or service not known]
resolve_lmhosts: Attempting lmhosts lookup for name campus.local<0x1c>
resolve_lmhosts: Attempting lmhosts lookup for name campus.local<0x1c>
resolve_wins: Attempting wins lookup for name campus.local<0x1c>
resolve_wins: using WINS server 10.3.20.70 and tag '*'
name_resolve_bcast: Attempting broadcast lookup for name campus.local<0x1c>
libnet_Join:
libnet_JoinCtx: struct libnet_JoinCtx
out: struct libnet_JoinCtx
account_name : NULL
netbios_domain_name : NULL
dns_domain_name : NULL
forest_name : NULL
dn : NULL
domain_sid : NULL
domain_sid : (NULL SID)
modified_config : 0x00 (0)
error_string : 'failed to find DC for domain campus.local'
domain_is_ad : 0x00 (0)
result : WERR_DCNOTFOUND
libnet_Join:
libnet_JoinCtx: struct libnet_JoinCtx
in: struct libnet_JoinCtx
dc_name : NULL
machine_name : 'SERVER'
domain_name : *
domain_name : 'CAMPUS'
account_ou : NULL
admin_account : 'Administrator@campus.local'
machine_password : NULL
join_flags : 0x00000023 (35)
0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS
0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME
0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT
0: WKSSVC_JOIN_FLAGS_DEFER_SPN
0: WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED
0: WKSSVC_JOIN_FLAGS_JOIN_UNSECURE
1: WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED
0: WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE
0: WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE
1: WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE
1: WKSSVC_JOIN_FLAGS_JOIN_TYPE
os_version : NULL
os_name : NULL
create_upn : 0x00 (0)
upn : NULL
modify_config : 0x00 (0)
ads : NULL
debug : 0x01 (1)
use_kerberos : 0x00 (0)
secure_channel_type : SEC_CHAN_WKSTA (2)
ads_dns_lookup_srv: Failed to resolve _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.CAMPUS (Success)
ads_dns_lookup_srv: Failed to send DNS query (NT_STATUS_UNSUCCESSFUL)
ads_dns_lookup_srv: Failed to resolve _ldap._tcp.dc._msdcs.CAMPUS (Success)
ads_dns_lookup_srv: Failed to send DNS query (NT_STATUS_UNSUCCESSFUL)
resolve_lmhosts: Attempting lmhosts lookup for name CAMPUS<0x1c>
resolve_lmhosts: Attempting lmhosts lookup for name CAMPUS<0x1c>
resolve_wins: Attempting wins lookup for name CAMPUS<0x1c>
resolve_wins: using WINS server x.x.x.x and tag '*'
name_resolve_bcast: Attempting broadcast lookup for name CAMPUS<0x1c>
libnet_Join:
libnet_JoinCtx: struct libnet_JoinCtx
out: struct libnet_JoinCtx
account_name : NULL
netbios_domain_name : NULL
dns_domain_name : NULL
forest_name : NULL
dn : NULL
domain_sid : NULL
domain_sid : (NULL SID)
modified_config : 0x00 (0)
error_string : 'failed to find DC for domain CAMPUS'
domain_is_ad : 0x00 (0)
result : WERR_DCNOTFOUND
Failed to join domain: failed to find DC for domain CAMPUS
return code = -1

Please help to sort out this problem

Last edited by Umeraf; 05-28-2019 at 03:33 AM.
 
Old 05-28-2019, 05:17 AM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
It looks like you aren't able to resolve campus.local. Is your resolv.conf setup to use your domain controllers as name servers? Not related, but I recommend setting server signing = mandatory in your global section of smb.conf. Without it, you can be susceptible to pass the hash attacks. Also try setting server role to member server.

Last edited by tyler2016; 05-28-2019 at 05:19 AM.
 
Old 05-29-2019, 12:22 AM   #3
Umeraf
LQ Newbie
 
Registered: Nov 2018
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thanks for your reply yes my resolv.conf use dns of domain controller
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Joining Windows Server 2008 R2 to a Samba domain ... sankeny Linux - Server 0 10-21-2011 08:30 PM
ERROR joining Linux to Active Directory gandip Linux - Desktop 1 03-24-2010 11:56 PM
Samba - Joining Active Directory error Cheza Linux - Server 5 04-04-2008 01:13 PM
Newbie Questions: Joining Red Hat v5 Server to Active Directory 2003 whowhatwhere Linux - Server 1 08-22-2007 05:54 PM
Error joining Fedora 7 to Active Directory Domain OdinnBurkni Linux - Networking 3 07-06-2007 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration