Bluehost.com Web Hosting $6.95

Re: RE [Samba] smbldap-useradd -w won't create machine account

This is a discussion on Re: RE [Samba] smbldap-useradd -w won't create machine account within the Samba forums, part of the Networking and Network Related category; No? Then how do you say we must do? Because I also tried to do that from Windows, and it ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-02-2008
Hector Blanco
 
Posts: n/a
Default Re: RE [Samba] smbldap-useradd -w won't create machine account

No? Then how do you say we must do? Because I also tried to do that
from Windows, and it doesn't work... I mean... right click on my pc
and "add machine to domain"... and still doesn't work :S

Quoting myself form:
http://lists.samba.org/archive/samba...ry/138639.html

> The linux server is the host called "xxxx" and the windows client is
> the host "enano"
>
> When I try to join the domain "JOME" from Windows, I am prompted for a
> user that has permission to create "things" in the domain. I fill the
> textboxes with "root" and the "rootpass", and in the samba.log file of
> the server (if the debug level is 2 or higher), it appears:
> "authentication for user [root] -> [root] -> [root] succeeded". After
> this, the machine (enano$) is properly created (if doesn't exist) in
> the Ldap schema (a new entry called enano$ appears in
> ou=3DHosts,dc=3Djome) as shown in the diagram above.The thing is that
> everything seems to be fine until in the windows machine a "error
> window dialog" appears with a very ugly red signal, saying ("username
> not found"). I think it must be something wrong with the user "root",
> because if I try a username that is really non-existent (john, for
> instance) or if I mistype the password, the message that appears in
> windows is different (in my computer appears in Spanish, but it's
> something like "session starting error: username not found or wrong
> password")... I've tried to put a higher debug level in samba
> (smb.conf-> debug level=3D3) and between several other messages, it
> appears:
> [2008/02/22 15:33:37, 3] passdb/pdb_interface.c:pdb_default_create_user(3=

54)
> pdb_default_create_user: failed to create a new user structure:
> NT_STATUS_NO_SUCH_USER
>


2008/4/2, Christopher Perry <cperry@hmdc.harvard.edu>:
> the problem, as it turns out, is that you can't expect the command line t=

o add the sambaSamAccount objectClass. the only way to get that added is by=
adding the windows machine to the domain, and samba will create that objec=
t class using the script. it must pass something magical to the script.
>
> don't ask me why, it seems counter intuitive.
>
>
>
> Hector Blanco wrote:
>
> > Shouldn't it? I mean...Taking a look to the output produced by
> > "smbldap-useradd -?" it says "-w is a windows machine account
> > (otherwise, posix stuff only)" or something similar... I don't have
> > the exact output right now.
> >
> > As far as I understand, it should add all the Samba stuff needed for =

Windows.
> >
> > And I'm having the same (or similar) problems...
> >
> > http://lists.samba.org/archive/samba...ry/138442.html
> > http://lists.samba.org/archive/samba...ry/138639.html
> > http://lists-archives.org/samba/3616...-question.html
> > http://lists.samba.org/archive/samba...ch/139288.html
> >
> > Well... at least I think they can be similar... Maybe I'm just really
> > wrong and each time than someone is experiencing problems adding a
> > Windows machine to an Ldap server, I keep saying "Me too, me too!!..."
> > although they are actually different problems... I hope not...
> >
> >
> >
> >
> > 2008/4/1, stephane.purnelle@corman.be <stephane.purnelle@corman.be>:
> >
> > > Samba will add sambaSAMAccount when you add the workstation to the d=

omain.
> > > sambaldaptools not add the samba shema for that.
> > >
> > > -----------------------------------
> > > St=E9phane PURNELLE stephane.purnelle@corma=

n.be
> > > Service Informatique Corman S.A. Tel : 00 32 087/34=

2467
> > >
> > > samba-bounces+stephane.purnelle=3Dcorman.be@lists.samba. org a =E9cr=

it sur
> > > 01/04/2008 16:17:13 :
> > >
> > > > I can't get smbldap-useradd to add the sambaSamAccount workstatio=

n
> > > > attributes. For example:
> > > >
> > > > smbldap-useradd -w 'test_machine$'
> > > >
> > > >
> > > > # test_machine$, People, desktop.hmdc.harvard.edu
> > > > dn: uid=3Dtest_machine$,ou=3DPeople,dc=3Ddesktop,dc=3D hmdc,dc=3Dh=

arvard,dc=3Dedu
> > > > objectClass: top
> > > > objectClass: account
> > > > objectClass: posixAccount
> > > > cn: test_machine$
> > > > uid: test_machine$
> > > > uidNumber: 1010
> > > > gidNumber: 515
> > > > homeDirectory: /dev/null
> > > > loginShell: /bin/false
> > > > description: Computer
> > > > gecos: Computer
> > > >
> > > >
> > > > Has anyone else experienced this? It thinks it's creating a machi=

ne
> > > > account, but it doesn't add sambaSamAccount, or sambaAcctFlags [W=

].
> > > >
> > > >
> > > > More info:
> > > > # rpm -qi smbldap-tools
> > > > Name : smbldap-tools Relocations: (not
> > > relocatable)
> > > > Version : 0.9.4 Vendor: Dag Apt
> > > > Repository, http://dag.wieers.com/apt/
> > > > Release : 1.el5.rf Build Date: Sat 22 Se=

p 2007
> > > > 01:35:45 AM EDT
> > > > Install Date: Tue 25 Mar 2008 11:43:42 AM EDT Build Host:
> > > > lisse.leuven.wieers.com
> > > > Group : System Environment/Base Source RPM:
> > > > smbldap-tools-0.9.4-1.el5.rf.src.rpm
> > > > Size : 525573 License: GPL
> > > > Signature : DSA/SHA1, Sat 22 Sep 2007 02:51:47 PM EDT, Key ID
> > > > a20e52146b8d79e6
> > > > Packager : Dag Wieers <dag@wieers.com>
> > > > URL : http://sourceforge.net/projects/smbldap-tools/
> > > > Summary : User and group administration tools for Samba-OpenL=

DAP
> > > >
> > > >
> > > >
> > > > Thanks,
> > > > c
> > > >
> > > > --
> > > > To unsubscribe from this list go to the following URL and read th=

e
> > > > instructions: https://lists.samba.org/mailman/listinfo/samba
> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: https://lists.samba.org/mailman/listinfo/samba
> > >
> > >

> >

>
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0