On 04/12/14 16:44, Gaiseric Vandal wrote:> Do you mean you want to have a Linux machine running Samba as a > standalone server? > > If the machine is not part of the domain, you should not need a local > machine account. However you will need to define local user samba > accounts which will need to correspond to a local unix account. > > On 12/04/14 11:35, jacek burghardt wrote: >> How I can add machine account to samba using ssh so user can login on >> that >> machine without having to rejoin samba domain. Machine had been >> joined to >> domain controller server 2012 >The last I heard from this guy, he was running Samba 4 as an AD DC, now he seems to have joined to a windows 2012 server, he is also having problems using samba4 with OpenChange (over on the Sogo mailing list). Now he wants to ssh into a machine running samba and requires help, he isn't supplying any further info and expects somebody to magically tell him exactly what to do. From what he has posted previously, English is not his first language, so you can make allowances for that, but his queries are basically not understandable. I think he needs to find someone whose English is a lot better than his before he posts again. He then needs to tells us just how he is running samba4, provide the usual conf files etc and just what he wants to do. Rowland
I am looking a way to pre create machine account on samba domain. Let say workstation name is mediapc2 and I want it pre added to my samba so user can auto join domain like it is posible on windows server side. I have openchange and sogo working just fine except for annoying an error occurred when caching value for key
On 04/12/14 17:30, jacek burghardt wrote:> I am looking a way to pre create machine account on samba domain. Let > say workstation name is mediapc2 and I want it pre added to my samba > so user can auto join domain like it is posible on windows server side. > I have openchange and sogo working just fine except for annoying an > error occurred when caching value for keyOK, to precreate a computer in samba4 AD, create an ldif: dn: CN=<uppercase_computername>,CN=Computers,DC=example,DC=com changetype: add objectClass: computer cn: <uppercase_computername> distinguishedName: CN=<uppercase_computername>,CN=Computers,DC=example,DC=com objectCategory: CN=Computer,CN=Schema,CN=Configuration,DC=example,DC=com instanceType: 4 displayName: <uppercase_computername>$ name: <uppercase_computername> userAccountControl: 4096 codePage: 0 countryCode: 0 accountExpires: 0 sAMAccountName: <uppercase_computername>$ dNSHostName: <computername>.example.com servicePrincipalName: HOST/<uppercase_computername> servicePrincipalName: HOST/<computername>.example.com Where your domain is 'example.com' replace <computername> with the short hostname of the computer you want to create. replace <uppercase_computername> with short hostname in UPPERCASE. Now add it to AD with ldbadd: ldbadd --url=/var/lib/samba/private/sam.ldb /path/to/your/ldif Rowland