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 NetworkConsultant247 Your Own Question

NetworkConsultant247
NetworkConsultant247, Consultant
Category: Computer
Satisfied Customers: 14
Experience:  20 year’s experience. Networking Administration A.A.S, MCP, N+, A+
75258596
Type Your Computer Question Here...
NetworkConsultant247 is online now
A new question is answered every 9 seconds

HiI could join domain(PDC:samba+LDAP)........but I couldnt

Resolved Question:

Hi

I could join domain(PDC:samba+LDAP)........but I couldnt "login"
error is that machines trust relationship fails

what can I do?
Submitted: 11 months ago.
Category: Computer
Customer: replied 11 months ago.
Relist: I still need help.
Expert:  NetworkConsultant247 replied 11 months ago.
Hello my name isXXXXX am sorry you are having a technical problem and I will answer your questions and find a solution to the best of my ability.

I will need additional information to troubleshoot such as what have you tried so far?
Customer: replied 11 months ago.

I have tried "login" after "join domain"..... but I cant

Expert:  NetworkConsultant247 replied 11 months ago.
Hello Ken, since you have already fixed the SID problem, this is usually a user password XXXXX fix. The domain controller does not recognize. Please reset the user password.

Let me know if this fixes the login.Smile
Sal
Customer: replied 11 months ago.

I made 1 users named "test01"


#useradd test01


#passwd test01


New password:XXX


retype:XXX


#pdbedit -a test01


I did this... But account flag is [DU ]....why .......?


anyway ,I try user password XXXXX


as a command #smbpasswd test01 (for example)?

Expert:  NetworkConsultant247 replied 11 months ago.
Are you saying you did reset the password? I am not finding {DU} please clarify, thanks.
There is a utility to do the reset if you have no joy!Smile
Customer: replied 11 months ago.

at first I dont know how to do reset the password XXXXX samba server


If you tell me how ... I will try :)


and next , I tried ...... I made one samba user ........ But ........ this user's account flag is [DU ](which means Disabled User)........ I dont know why ..........I think we need more infomations....... I send you zip file ok?

Expert:  NetworkConsultant247 replied 11 months ago.
Thats ok I found the flag user disabled. Try new:

-a|--create

This option is used to add a user into the database. This command needs a user name specified with the -u switch. When adding a new user, pdbedit will also ask for the password XXXXX be used.

Example: pdbedit -a -u sorce

Expert:  NetworkConsultant247 replied 11 months ago.
Enable the user accounts with smbpasswd -e username . This is normally done as an account is created.


Until a few minutes after Samba has started, clients get the error `Domain Controller Unavailable'”

A domain controller has to announce its role on the network. This usually takes a while. Be patient for up to 15 minutes, then try again.

 

Let me know if this is workingSmile

Expert:  NetworkConsultant247 replied 11 months ago.
And this

If you added the account using an editor rather than using the smbpasswd utility, make sure that the account name is XXXXX XXXXX NetBIOS name with a “$” appended to it (i.e., computer_name$). There must be an entry in both the POSIX UNIX system account backend as well as in the SambaSAMAccount backend.
Expert:  NetworkConsultant247 replied 11 months ago.
Did you use the UNIX tool vipw?
Customer: replied 11 months ago.

no, I didnt use UNIX tool vipw.

Expert:  NetworkConsultant247 replied 11 months ago.
Thank you for the reply this answer window has a bug and I have tried to send my answers. I may have to upload a link.
Customer: replied 11 months ago.

I am confused........ plz help me.

Expert:  NetworkConsultant247 replied 11 months ago.
Yes I will send the link that explains the password XXXXX up. You should use the utility vipw

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/samba-pdc.html#id2565428
Expert:  NetworkConsultant247 replied 11 months ago.
This may also help clarify:

http://www.samba.org/samba/docs/man/manpages/pdbedit.8.html

I want to make sure you can login after you make the password XXXXX or new account using the tool. It shows that if you created the accounts manually it may not work.
Customer: replied 11 months ago.

I am seeing its URL ..... but I dont make sense.......


"#pdbedit -a -u XXX" is for loggingin?.....hmmmmm

Customer: replied 11 months ago.

BTW, Account Flag Problem resolved.


#smbldap-groupadd abc


#smbldap-useradd -am -g abc abc


#smbldap-passwd abc


New Password:


Retyype new password:


after that


I typed #pdbedit -L -w


I can see account flag is like [U ]

Expert:  NetworkConsultant247 replied 11 months ago.
Was reseting password XXXXX? It shows that you have to make some checks to make sure the group does not have the same name

Did you see this: pdbedit -a -m -u w2k-wks this is to add a machine trust account.
Its from the second link page I sent.
A little more than halfway scroll down and look under -mj--machine

It has all the checks to make and so let me know if you can log in, and if not what is the error after you make the modifications to the user account.
Expert:  NetworkConsultant247 replied 11 months ago.
{U} is regular user account! Thats better!Smile
Expert:  NetworkConsultant247 replied 11 months ago.
Ok sorry I see you typed the answer to my questions and I sent my reply after you sent yours.
So it appears you have success!Smile I am happy for you!
Customer: replied 11 months ago.

so would you tell me how to create new user account to login on commands?

Expert:  NetworkConsultant247 replied 11 months ago.
Yes :
This option is used to add a user into the database, the command needs a username specified with the -u switch.

pdbedit -a -u sorce

new password
retype new password

Are you satisfied and happy to get to this point? If so please rate my service so that I can be compensated. If not please let me know what else I can do to help you with the log in!SmileSmileSmileSmile
Expert:  NetworkConsultant247 replied 11 months ago.
Are you asking to use synchronising for Samba and Unix?
which means the Samba user automatically created whenever a unix user is created?
That is :

smbldap-useradd johndoe

or useradd johndoe this one requires the first user to login to activate the second
Expert:  NetworkConsultant247 replied 11 months ago.
And in addition to that to set the user password XXXXX the database to login without having to use a password XXXXX XXXXX:

smbpasswd -a

Let me know if this is what you needed.
Customer: replied 11 months ago.

I could not do smbpasswd -a <username>


error occurred

Attachment: 2013-08-29_024837_smbpasswd.zip

Expert:  NetworkConsultant247 replied 11 months ago.
It has to be an active user account. Was the sync of accounts successful so that the user account would create as in the: smbldap-useradd johndoe?
Customer: replied 11 months ago.

I did smbldap-useradd johndoe


and did smbpasswd -a johndoe


but I couldnt login .....


I think useradd <username> and pdbedit -a <username> is better I think .......... BUT if I do so ......... account flag problem occurrs and cant login after all...........


 


what can we do?

Expert:  NetworkConsultant247 replied 11 months ago.
what does the flag show? The last flag you gave was {U} regular user.
And from the links to guidelines I sent you should go through the checks listed to make sure the user accounts are active.
When I read the text log you sent it appears the attribute is not allowed.
It may be a version difference that you have. So then you could check all of the updates for the version Samba that you use.
The domain trust is fixed , and the only thing that was stopping the login was the password. So was the reset successful I asked and you sent the log, it showed (U) flag which is normal. Have you restarted ?After making these changes as in one of the checks listed shows to restart. Let me know after you update.Smile
Customer: replied 11 months ago.

finally I understarnd how to create correct samba users


I typed these commands....... it was sucessfull below.


#smbldap-useradd johndoe
#smbldap-passwd -a johndoe


#useradd johndoe


#pdbedit -a -u johndoe


 


Smile


and samba version is 3.6. This is latest version. and I restart smb nmb and slapd

Expert:  NetworkConsultant247 replied 11 months ago.
You are awesome!! I am so happy for you! SmileSmile

I will have to go offline in a bit Ken but again it was very nice to be of help to you!
SAL waving since no emoticon...
NetworkConsultant247, Consultant
Category: Computer
Satisfied Customers: 14
Experience: 20 year’s experience. Networking Administration A.A.S, MCP, N+, A+
NetworkConsultant247 and 15 other Computer Specialists are ready to help you
Expert:  NetworkConsultant247 replied 11 months ago.
Hello Ken thank you for using JustAnswer to help you resolve your technical questions.
I am just checking back with you to ask if you had any further questions that I may help you with?
Have A Great Day!
Sal

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
  • I am very happy with my very fast response. Eric is very knowledgeable in the subject area. Thank you! RP Austin, TX
  • Hi John, Thank you for your expertise and, more important, for your kindness because they make me, almost, look forward to my next computer problem. After the next problem comes, I'll be delighted to correspond again with you. I'm told that I excel at programing. But system administration has never been one of my talents. So it's great to have an expert to rely on when the computer decides to stump me. God bless, Bill Bill M. Schenectady, New York
  • The Expert answered my Mac question and was patient. He answered in a thorough and timely manner, keeping the response on a level that could understand. Thank you! Frank Canada
  • 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
 
 
 

Meet The Experts:

 
 
 
  • Andy

    Computer Consultant

    Satisfied Customers:

    5311
    11yr exp, Comp Engg, Internet expert, Web developer, SEO
< Last | Next >
  • http://ww2.justanswer.com/uploads/EN/Engineer1010/2012-6-9_132423_jaj12a.64x64.jpg Andy's Avatar

    Andy

    Computer Consultant

    Satisfied Customers:

    5311
    11yr exp, Comp Engg, Internet expert, Web developer, SEO
  • http://ww2.justanswer.com/uploads/BA/barrenrock/2011-10-19_215925_JamesJAFinal.64x64.jpg James's Avatar

    James

    Sr. Computer Support Expert

    Satisfied Customers:

    8376
    20 years of experience building, fixing and servicing PCs and operating systems.
  • http://ww2.justanswer.com/uploads/zeyank/2009-09-26_154244_P8110079.png Ryan H.'s Avatar

    Ryan H.

    Computer Support Specialist

    Satisfied Customers:

    1741
    A+ Certified Technician - 10 Years experience working with all types of computer systems.
  • http://ww2.justanswer.com/uploads/JA/jadedangel57/2011-11-8_193134_janenewsm.64x64.jpg Jane Lefler's Avatar

    Jane Lefler

    Sr Prog Analyst / Technician

    Satisfied Customers:

    0
    Computer Programmer / Technician/ Consultant 16+ years
  • http://ww2.justanswer.com/uploads/RO/robmpreston/2013-9-23_233814_mijiFZm.64x64.jpg RPI Solutions's Avatar

    RPI Solutions

    Support Specialist

    Satisfied Customers:

    3476
    5+ Years in IT, BS in Computer Science
  • http://ww2.justanswer.com/uploads/BA/barunrath/2012-7-5_201954_Profilepic2.64x64.jpg B. Rath's Avatar

    B. Rath

    Computer Support Specialist

    Satisfied Customers:

    8671
    Certified Computer/Networking Support Specialist.
  • http://ww2.justanswer.com/uploads/FS/fszcze/2012-6-18_181848_500test.64x64.jpg Frederick S.'s Avatar

    Frederick S.

    Computer Specialist

    Satisfied Customers:

    7240
    Computer technician and founder of a home PC repair company.