How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Kamil Anwar Your Own Question

Kamil Anwar
Kamil Anwar, Software Specialist
Category: Software
Satisfied Customers: 1980
Experience:  8+ Years of Experience. / CCNA (S), CCNA (W), CCNA (RS), MCTS, MBCs.
69350257
Type Your Software Question Here...
Kamil Anwar is online now
A new question is answered every 9 seconds

I tried "Join domain" from windows7. But I couldnt. Error occured.

Customer Question

I tried "Join domain" from windows7. But I couldnt. Error occured.
"the specified domain either does notexit or could not be contacted"

How should I do?

Ps)
I changed registry "DomainCompatibilityMode" & "DNSNameResolutionRequired"
Submitted: 1 year ago.
Category: Software
Expert:  Kamil Anwar replied 1 year ago.
Hello & Welcome to JustAnswer – My name isXXXXX and I will be assisting you with your question today.

Can you ping the domain from W7 by it's name ?
Customer: replied 1 year ago.

I can see ping from w7 by "netbios name setting in smb.conf called PDC"


but I cannot see ping from w7 by "Samba domain name"


 


hmmmm

Expert:  Kamil Anwar replied 1 year ago.
What is the IP of the domain and what is the IP of the W7?

What operating system is domain running?

Are they on local lan?
Customer: replied 1 year ago.

the IP of the domain is 192.168.30.2 and W7 is 192.168.30.13


CentOS6.4(Samba3.6+OpenLDAP)is PDC


 


yes they are local lan

Expert:  Kamil Anwar replied 1 year ago.
So the Primary Domain Controller is Cent OS?
Customer: replied 1 year ago.

yes Primary Domain Controller is CentOS , not win server


<CentOS>-------<W7> local lan

Expert:  Kamil Anwar replied 1 year ago.

What is the name of the domain?

 

Replace domain.loc with Domain Name?

 

Can you do ping domain.loc from Win 7?

 

Also from the Win 7 machine, can you do nslookup domain.loc ?

Customer: replied 1 year ago.

the domain name is PANASONICIS.


I cant ping it from win7.its unknown host. cant find server


I cant do nslookup domain.loc cant find server


coz I didnt set up DNS resolving IP Address and I htought I dont need DNS in "Join Domain".

Expert:  Kamil Anwar replied 1 year ago.
You do need DNS to join the domain.

Where is the DNS hosted?

If you don't want to setup the DNS then try the following:

On Windows 7

Go TO

C:\Windows\System32\drivers\etc

Open the file hosts and add this line

192.168.30.2 PANASONICIS

Save the file, then try to join the domain.

The DNS is responsible for resolving the names.

Think like this - I am a computer and the only language i understand is numbers.

DNS is my translator.

Computer asks you what your name is XXXXX XXXXX tell the Computer i am Ken.

The computer says i dont understand you.

You then hire a translator to tell the computer that in his language Ken = 1.2.3.4

Computer again asks you what is your name?

You tell the translator, it's Ken.

Translator (DNS) tells the comptuer it's 1.2.3.4.



Customer: replied 1 year ago.

I can ping by domain name.Smile


but I cant join "Domain"..... error message is same.


 

Customer: replied 1 year ago.

I am waiting ..........

Expert:  Kamil Anwar replied 1 year ago.
Apologies for the delayed reply. The site is having problem which is why i am unable to post my reply.

Trying to post the commands.
Expert:  Kamil Anwar replied 1 year ago.

http://wikisend.com/download/393392/doc.doc

 

I have posted my response in the link. It seems like when i type that command, i cannot post.

Customer: replied 1 year ago.

here is company.


I cant see its URL coz of URL filter.


but I can upload smb.conf

Attachment: 2013-08-28_073058_smb.zip

Expert:  Kamil Anwar replied 1 year ago.
Is this running on VMWare?
Customer: replied 1 year ago.

no this is NOT running on VMWARE

Expert:  Kamil Anwar replied 1 year ago.
Can you tell me dns settings for both windows and centos
Customer: replied 1 year ago.

windows7 is not DNS Setting. But "WINS"option Setting.(Samba Server's IP is used)


CentOS is .............not setting.


 


Plz help me


 

Expert:  Kamil Anwar replied 1 year ago.
Please run the command shown here:

http://pastebin.com/x54KPC7g

Tell me the output?
Expert:  Kamil Anwar replied 1 year ago.
Also can you run this hotfix on Windows 7 machine?

http://support.microsoft.com/kb/2171571
Customer: replied 1 year ago.

no this is limited local area network. PCs cant go out to the net


and I cant see its URL


 


 

Expert:  Kamil Anwar replied 1 year ago.
There are fixes available for this problem, and unfortunately those are the steps that needs to be taken to resolve this problem.

Please type this on CentOS terminal

service smb start
service nmb start
service smb restart
service nbm restart

You can download the file on the PC which has internet, put it in a USB and then put it on Windows 7 and then run-it.

http://support.microsoft.com/kb/2171571
Expert:  Kamil Anwar replied 1 year ago.
Did it work?
Customer: replied 1 year ago.

I did hotfix(kb2171571)and restart samba


but it didnt work ...... couldnt join domain ....... errror message is same

Expert:  Kamil Anwar replied 1 year ago.

Did you restart windows and where did you make changes to registry?

 

HKLM\System\CCS\Services\LanmanWorkstation\Parameters ?

 

After making the changes, error message will still come but you should be able to do the work. Also was this working before or is this a new seutp?

Customer: replied 1 year ago.

I changed HKLM\System\CCS\Services\LanmanWorkstation\Parameters


coz of below URL


http://lists.samba.org/archive/samba/2009-September/150492.html


 


I restarted windows....................

Expert:  Kamil Anwar replied 1 year ago.
This is how it should be:

HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0
Customer: replied 1 year ago.

I did .....but nothing changed.......

Expert:  Kamil Anwar replied 1 year ago.

Check properties whether it is in domain or work group? Also was this working before or is this a new seutp?

Customer: replied 1 year ago.

I checked it was workgroup. and this is new set-up

Customer: replied 1 year ago.

at first , I checked seeing "workinggroup" of property. and check "domain" and typed "domain" name.


then user and password XXXXX needed and typed.


but error occurred.messege is "specified domain either ~could not be contacted".

Expert:  Kamil Anwar replied 1 year ago.
That is a positive sign.

This message will still come even if it joins the domain.

Can you restart Windows again and see (if it logs in to Domain now)?
Customer: replied 1 year ago.

I did restart windows again ...... nothing changed........ error is same

Expert:  Kamil Anwar replied 1 year ago.
Is there a share created on centos/samba?
Customer: replied 1 year ago.

yes...... it should be restarted?

Expert:  Kamil Anwar replied 1 year ago.
Try to restart it, also check if ldap is allowed through

iptables -nL

If there is no share, or share is configured incorrectly. You still get this message.

Check Windows Event Log 7013
Expert:  Kamil Anwar replied 1 year ago.
Did you run through all the steps here:

https://wiki.archlinux.org/index.php/Samba_Domain_Controller
Customer: replied 1 year ago.

about smb.conf ......... it was not written about LDAP.......... I cannot use it ........ passdb backend must be for LDAP.


others are what I should try it

Expert:  Kamil Anwar replied 1 year ago.
I am sorry, i did not understand what you meant.

Please clarify.

There is no issue on the Windows end now, the issue is with Samba Configuration.

Customer: replied 1 year ago.

net groupmap add ~ ........ this is failed.


rid is taken and I tried another number.but .......just failed.....

Expert:  Kamil Anwar replied 1 year ago.
I will advise you to re-configure CentOS from beginning because it will take a lot of time and without much information to fix all errors on Samba.

Configure it according to https://wiki.archlinux.org/index.php/Samba_Domain_Controller


Also, we need to see the files like Event Viewer logs and /var/samba logs to see what error it is.

Customer: replied 1 year ago.

from this morning 2 times I did re-configure CentOS and samba+LDAP.


Maybe I cannot configure it coz of different settings


I saw Event viewer logs.


 


I think keyword is "contacted" on Windows error.


 


what do you think?..........I never give up........


 


 

Expert:  Kamil Anwar replied 1 year ago.
Winner is the one who never gives up.

What we can do then is set this up again and I will be with you to assist.

But I have to leave now so shall we continue after six hours?

That error can still come I do not believe its a windows problem.


Thanks
Customer: replied 1 year ago.

Theres no time for me too but I have to resolve this problem.


if you wanna leave now, thats ok. but can anyone give me advice?........


 

Expert:  Kamil Anwar replied 1 year ago.
This is a very simple setup gone wrong due to configuration. Because in this type of setup one wrong configuration can have negative results.

We also have a problem that you cannot upload logs or show us here which is needed to understand and without it not possible to diagnose.

Easiest way to fix this is to check logs. Check ports and ensure shares created/configured.

If that doesn't help then to reconfigure from scratch.

I will opt out of the question and it will be open to other experts.

Thanks
Customer: replied 1 year ago.

thank you very much for taking time.......I will hear another expert


Anyway Thank you Smile

Customer: replied 1 year ago.

Error changed!!!


PC account "ABC" is created with another information.invalid account should erase......and access denied.


this is error message.


 

Expert:  Kamil Anwar replied 1 year ago.
Since no one else has joined, i will try to assist you again. I hope that is fine with you.

Like i said earlier, the problem is related to samba-configuration, not Windows.

Can you tell me what you changed now which resulted in new error?
Customer: replied 1 year ago.

at first I mistyped windows registry.......DNSNameSolutionRequired -> DNSNameResolutionRequired


and restart windows and tried it again..... that error occurred


 

Customer: replied 1 year ago.

PC account named "ABC" should erase and creat newly again I think.


so I tried "smbldap-userdel abc$". but abc$ does not exist this is answer.


other hand,smbldp-useradd -w abc$ I tried. then error occurred.....


messege is that SID not set for unix group 515 check if your unix group is mapped to an NTgroup.


I dont know how to do..... plz tell me

Expert:  Kamil Anwar replied 1 year ago.
useradd test1
passwd test1
[enter a password]
smbpasswd -a test1
[enter a password]

then try to login with the newly created user.
Customer: replied 1 year ago.

I did......and tried "join domain". another error occurred


it is that "cant find the specified computer account" plz check accouunt is in "domain". if its account is erased, release(hard to translate to my language) "join domain" and restart PC and join domain again.


 


PC account error I think........

Expert:  Kamil Anwar replied 1 year ago.
Can you type word to word error message exact message?
Customer: replied 1 year ago.

windows7 is My language edition(Japanese). Hard to translate ......... sorry ........ I believe most of them are exact word and messege

Customer: replied 1 year ago.

Now if you are confused, I am sorry....I try hard to understand english words Smile

Expert:  Kamil Anwar replied 1 year ago.
I am trying to relate the error message with one in English so i can understand :)
Expert:  Kamil Anwar replied 1 year ago.
Please restart samba and try to login again, if that doesnt work try to login with root.
Customer: replied 1 year ago.

I did ..... I tried to login with root....... same error occurred.......


in smb.conf,there is "admin users", I think I cant login with root


This is SID problem and Computer account... this is my opinion.

Expert:  Kamil Anwar replied 1 year ago.
What is the output of below command on terminal?

testparm
Customer: replied 1 year ago.

I attach zip file

Attachment: 2013-08-28_124045_testparm.zip

Expert:  Kamil Anwar replied 1 year ago.
Can you send logs for /var/log/samba
Customer: replied 1 year ago.

okie,do you need log.smb & log.nmb?log.XXX in /var/log/samba/


or do you need all logs?

Expert:  Kamil Anwar replied 1 year ago.
All would be better :)
Customer: replied 1 year ago.

okie,wait plz

Expert:  Kamil Anwar replied 1 year ago.
No problem.
Customer: replied 1 year ago.

I give you zip file

Attachment: 2013-08-28_125702_samba.zip

Expert:  Kamil Anwar replied 1 year ago.
please type:

getlocalsid

then type:
net setlocalsid sid here

should be like

S-5-5-22-726302513-5128531205-1552186515
Customer: replied 1 year ago.

"getlocalsid" is invalid as a commad

not fond this command.

 

#(something) getlocalsid ????

Expert:  Kamil Anwar replied 1 year ago.
Please type the command show at this link -> http://pastebin.com/Vcr4bpmS
Customer: replied 1 year ago.

I did ..... and type net setlocalsid <SID>


and as a check command , type #net getdomainsid


and both of "local" and "domain" are same SID now

Expert:  Kamil Anwar replied 1 year ago.
service smb start
service nmb start
service smb restart
service nbm restart

then try again.
Customer: replied 1 year ago.

unfortunately the same error (not found computer account~) occurred...............

Expert:  Kamil Anwar replied 1 year ago.
Please type:

sudo pdbedit -L -v

tell me what it shows?
Customer: replied 1 year ago.

ZIP file

Attachment: 2013-08-28_134512_pdbedit.zip

Customer: replied 1 year ago.

I can join domain!!!



I typed:


 


#useradd abc$


#pdbedit -a -m abc$


 


and tried to join domain and I could do that actually :)

Expert:  Kamil Anwar replied 1 year ago.
I am glad it worked.

That's what i was looking at too, you were joining before with pc417 and different IDs.

While the only users were root/domainadmn.

Which is why it was unable to add the computer.

If you could rate my services, that will be appreciated.


Thanks
Customer: replied 1 year ago.

theres problem....I joined domain..... but cant log in.........


error is "failed to trust relationship"


 


 

Expert:  Kamil Anwar replied 1 year ago.
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/513562

Point #9 should fix.
Expert:  Kamil Anwar replied 1 year ago.
I have to leave now. I will be back in 6 hours. If problems continue update samba.
Customer: replied 1 year ago.

okie I am listeing to another expert :) thank you

Expert:  Kamil Anwar replied 1 year ago.

Hi Ken,

 

Are you there? Did you implement the step #9 from that website?

 

 

Thanks

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • Chris L.

    Support Specialist

    Satisfied Customers:

    320
    Certified Software expert with over 10 years experience.
< Last | Next >
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    320
    Certified Software expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/MI/MichaelHannigan/2012-1-5_03441_Headshot.64x64.jpg Michael Hannigan's Avatar

    Michael Hannigan

    IT Expert

    Satisfied Customers:

    288
    20+ Years Experience in Field. MCSE, ICCP, CNE, Greenbelt
  • http://ww2.justanswer.com/uploads/JI/jinsmn/2012-6-7_24315_JinsOfcl.64x64.jpg Jins M. N.'s Avatar

    Jins M. N.

    Computer Hardware Engineer

    Satisfied Customers:

    231
    12+ years experience. Expert in installing and problem fixing of softwares.
  • http://ww2.justanswer.com/uploads/CO/ComputerTechMaster/2012-10-15_231227_CopyTie.64x64.jpg Jason's Avatar

    Jason

    Computer Technician

    Satisfied Customers:

    226
    10+ years of work experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    211
    Bachelor's Degree in Information Technology
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    210
    Familiar with a wide variety of software and experienced in user training/support
  • http://ww2.justanswer.com/uploads/TI/Tigshadorakie/2012-10-9_3229_profile2.64x64.jpg Chris R.'s Avatar

    Chris R.

    Computer Tech

    Satisfied Customers:

    192
    BSBA CIS, A+ Certified