RE: [Samba] failed to join domain error - solved
Dear All, googling arround and trying various options finally i mamaged to have my Centos 5.2 server join my win2003AD Server.. really banged my head through but never thought it was so simple it was just basically the correct entries in my hosts n resolv.conf file thnks all, regards simon -Original Message- From: samba-bounces+james_zuelow=ci.juneau.ak...@lists.samba.org [mailto:samba-bounces+james_zuelow=ci.juneau.ak...@lists.samba .org] On Behalf Of Benedict simon Sent: Friday, 27 March, 2009 05:06 To: samba@lists.samba.org Subject: [Samba] failed to join domain error Dear All, I have succesfully managed to have my kerberos configured n working without error when i say kinit Administrator and after entering password i get the # prompt so its works fine now i configured /etc/samba/smb.conf but when i try to join my Win2003 ADS domain server net ads join -U Administrator Administrator's password: [2009/03/26 21:58:05, 0] utils/net_ads.c:ads_startup_int(286) ads_connect: No logon servers Failed to join domain: No logon servers thnks and Regards Simon -- Network ADMIN - KUWAIT MUNICIPALITY: I just had a host do this recently, using Samba 3.2.5-4 Debian. DNS was working fine, kerberos was working fine, but for some reason net ads join didn't want to work. I resolved it by putting an entry for a domain controller into /etc/hosts. After that net ads join worked fine. James ZuelowCBJ MIS (907)586-0236 Network Specialist...Registered Linux User No. 186591 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Thanks and really apprecite your quick reply by the way i do have a entry in my hosts file 172.16.2.227BALADIA.LOCAL also the realm was different from my krb5.conf file i think since i was jus tryin options so now the realm i have corrected and my realm in smb.conf n krb5.conf is the same also when i run net ads info it gives me -- Failed to get server's current time! LDAP server: 172.16.2.227 LDAP server name: kmun.baladia.local Realm: BALADIA.LOCAL Bind Path: dc=BALADIA,dc=LOCAL LDAP port: 389 Server time: Thu, 01 Jan 1970 03:00:00 AST KDC server: 172.16.2.227 Server time offset: 0 again i mention my AD win2003 server domain is BALADIA.LOCAL computer name is kmun ip === 172.16.2.227 apprecite if you could help me with somne suggestions thanks once again regards simon -- Network ADMIN - KUWAIT MUNICIPALITY: -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- Network ADMIN - KUWAIT MUNICIPALITY: -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] shared files missing after install
On Wed, Mar 25, 2009 at 4:30 AM, David Bessell (SuperU) david.bess...@collegiate.tas.edu.au wrote: I am running samba on a FreeBSD 7 vbox and get the following messages emma# /usr/local/samba/sbin/smbd -D /libexec/ld-elf.so.1: Shared object libtalloc.so.1 not found, required by smbd emma# /usr/local/samba/sbin/winbindd -D /libexec/ld-elf.so.1: Shared object libtalloc.so.1 not found, required by winbindd emma# /usr/local/samba/sbin/nmbd -D /libexec/ld-elf.so.1: Shared object libtalloc.so.1 not found, required by nmbd I have done a default install, configure, make, make install with no parameters or switches. There clearly needs to be something else installed but I don't know what. Out of curiosity, why would you use FreeBSD without using ports collection?! Regards, Timur -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Multiple daemon log files.
Hi there, On Fri, 27 Mar 2009, Jeremy Allison wrote: On Fri, Mar 27, 2009 at 03:32:18PM +, G.W. Haywood wrote: The testparm utility reports no errors in smb.conf. I have the line log file = /var/log/samba/log.%m in smb.conf which I took to mean logs for machines will be written in the /var/log/samba directory, but not logs for the daemons. To put my mind at rest, should I also expect the daemon logs (or parts of them??) to be written there too, or is this a bug, or might this be a symptom of my ill-advised tinkering? Ill advised thinking :-). All logs will we written in that directory. Nope. If it's supposed to be that way, then this is a bug. /usr/local/samba/var: drwx-- 5 root staff 4096 2009-03-26 14:30 cores drwxr-sr-x 3 root staff 4096 2009-03-27 14:20 old -rw-r--r-- 1 root staff370 2009-03-27 16:52 log.winbindd -rw-r--r-- 1 root staff360 2009-03-27 16:52 log.smbd -rw-r--r-- 1 root staff 2773 2009-03-28 13:37 log.wb-XXX -rw-r--r-- 1 root staff 0 2009-03-28 13:39 log.winbindd-idmap -rw-r--r-- 1 root staff133 2009-03-28 13:39 log.winbindd-dc-connect drwxr-sr-x 6 root staff 4096 2009-03-28 17:28 locks -rw-r--r-- 1 root staff 103862 2009-03-28 17:33 log.nmbd /var/log/samba: drwx-- 5 root root 4096 2008-06-20 15:01 cores -rw-r--r-- 1 root root 700 2009-03-27 19:26 log.192.168.0.250 -rw-r--r-- 1 root root 1219 2009-03-27 19:27 log.palatine -rw-r--r-- 1 root root 842 2009-03-28 13:28 log.xxx-045 -rw-r--r-- 1 root root 350 2009-03-28 13:28 log.192.168.0.16 -rw-r--r-- 1 root root 1522 2009-03-28 13:39 log.smbd -rw-r--r-- 1 root root 1025 2009-03-28 13:39 log.0.0.0.0 -rw-r--r-- 1 root root 5076 2009-03-28 13:39 log.winbindd -rw-r--r-- 1 root root 1524 2009-03-28 13:39 log.192.168.0.10 -rw-r--r-- 1 root root 15998 2009-03-28 17:33 log.server Some files are written to one directory, some to the other. Some (e.g. log.winbindd, log.smbd) change from one to the other after reading the configuration, some (e.g. log.nmbd) don't. -- 73, Ged. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Does WINS need to be populated or configured?
Hi All, Now that I have winbind running and wins support = yes in my smb.conf, am I missing something? Like setting up WINS, configuring it, populating it, etc.? Can someone point me to documentation on what to do (administrate) WINS? Many thanks, -T -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Does WINS need to be populated or configured?
Am Sonntag, 29. März 2009 schrieb MargoAndTodd: Hi All, Now that I have winbind running and wins support = yes in my smb.conf, am I missing something? Like setting up WINS, configuring it, populating it, etc.? Can someone point me to documentation on what to do (administrate) WINS? Many thanks, -T Have a look here: http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2576622 Cheers, Günter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Does WINS need to be populated or configured?
Günter Kukkukk wrote: Am Sonntag, 29. März 2009 schrieb MargoAndTodd: Hi All, Now that I have winbind running and wins support = yes in my smb.conf, am I missing something? Like setting up WINS, configuring it, populating it, etc.? Can someone point me to documentation on what to do (administrate) WINS? Many thanks, -T Have a look here: http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2576622 Cheers, Günter Hi Gunter, Great reference! My wins.dat is located in /var/lock/samba/wins.dat and it is full of stuff (and now I know where it is located, so I can back it up). Also, wins.dat populates itself. (Much easier than bind, which required vi to administrate.) Thank you! -T -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] pdbedit's add machine option
Hi All, I have been reading through man pdedit. I came across the -m option: -m This option may only be used in conjunction with the -a option. It will make pdbedit to add a machine trust account instead of a user account (-u username will provide the machine name). Example: pdbedit -a -m -u w2k-wks Not to ask too stupid a question, but why would you want to have a machine account? Would not the user account suffice? Confused, -T -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-774-g12a8ed0
The branch, master has been updated via 12a8ed07b43ed8dc27db396a23cd8657e419101e (commit) via 92f3686c962d67a5feab00b9e8abdb87ddb832a6 (commit) from 0b890ae19a6e9dad9bdff248ada3fdee9416ab96 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 12a8ed07b43ed8dc27db396a23cd8657e419101e Author: Zach Loafman zachary.loaf...@isilon.com Date: Fri Mar 27 19:14:01 2009 -0700 s4:torture/smb2: Add torture tests for leases. commit 92f3686c962d67a5feab00b9e8abdb87ddb832a6 Author: Zach Loafman zachary.loaf...@isilon.com Date: Fri Mar 27 19:12:43 2009 -0700 s4:smb2: Add rudimentary SMB2.1 lease support to libcli Add the structures, constants, and marshalling for SMB2.1 leases. --- Summary of changes: source4/libcli/raw/interfaces.h | 12 ++ source4/libcli/smb2/create.c| 30 source4/libcli/smb2/smb2.h |8 + source4/torture/smb2/config.mk |1 + source4/torture/smb2/lease.c| 296 +++ source4/torture/smb2/smb2.c |1 + 6 files changed, 348 insertions(+), 0 deletions(-) create mode 100644 source4/torture/smb2/lease.c Changeset truncated at 500 lines: diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h index a0584c0..bd93fa1 100644 --- a/source4/libcli/raw/interfaces.h +++ b/source4/libcli/raw/interfaces.h @@ -53,6 +53,16 @@ struct smb2_handle { uint64_t data[2]; }; +/* + SMB2 lease structure (per MS-SMB2 2.2.13) +*/ +struct smb2_lease { + uint64_t lease_key[2]; + uint32_t lease_state; + uint32_t lease_flags; /* should be 0 */ + uint64_t lease_duration; /* should be 0 */ +}; + struct ntvfs_handle; /* @@ -1633,6 +1643,7 @@ union smb_open { bool query_maximal_access; NTTIME timewarp; bool query_on_disk_id; + struct smb2_lease *lease_request; /* and any additional blobs the caller wants */ struct smb2_create_blobs { @@ -1666,6 +1677,7 @@ union smb_open { /* optional return values matching tagged values in the call */ uint32_t maximal_access; uint8_t on_disk_id[32]; + struct smb2_lease lease_response; /* tagged blobs in the reply */ struct smb2_create_blobs blobs; diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c index 8a40e56..344be60 100644 --- a/source4/libcli/smb2/create.c +++ b/source4/libcli/smb2/create.c @@ -312,6 +312,23 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create } } + if (io-in.lease_request) { + uint8_t data[32]; + + memcpy(data[0], io-in.lease_request-lease_key, 16); + SIVAL(data, 16, io-in.lease_request-lease_state); + SIVAL(data, 20, io-in.lease_request-lease_flags); + SBVAL(data, 24, io-in.lease_request-lease_duration); + + status = smb2_create_blob_add(req, blobs, + SMB2_CREATE_TAG_RQLS, + data_blob_const(data, 32)); + if (!NT_STATUS_IS_OK(status)) { + talloc_free(req); + return NULL; + } + } + /* and any custom blobs */ for (i=0;iio-in.blobs.num_blobs;i++) { status = smb2_create_blob_add(req, blobs, @@ -402,6 +419,19 @@ NTSTATUS smb2_create_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx, struct } memcpy(io-out.on_disk_id, io-out.blobs.blobs[i].data.data, 32); } + if (strcmp(io-out.blobs.blobs[i].tag, SMB2_CREATE_TAG_RQLS) == 0) { + uint8_t *data; + if (io-out.blobs.blobs[i].data.length != 32) { + smb2_request_destroy(req); + return NT_STATUS_INVALID_NETWORK_RESPONSE; + } + + data = io-out.blobs.blobs[i].data.data; + memcpy(io-out.lease_response.lease_key, data, 16); + io-out.lease_response.lease_state = IVAL(data, 16); + io-out.lease_response.lease_flags = IVAL(data, 20); + io-out.lease_response.lease_duration = BVAL(data, 24); + } } data_blob_free(blob); diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h index 7c07c84..fd961ce 100644 --- a/source4/libcli/smb2/smb2.h +++ b/source4/libcli/smb2/smb2.h @@ -263,6 +263,13
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-775-g23bb1ee
The branch, master has been updated via 23bb1eedf68f1325a4993def22689cf2c8283f8d (commit) from 12a8ed07b43ed8dc27db396a23cd8657e419101e (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 23bb1eedf68f1325a4993def22689cf2c8283f8d Author: Stefan Metzmacher me...@samba.org Date: Sat Mar 28 23:48:45 2009 +0100 tsocket: more s/sun/un to make the build on solaris happy metze --- Summary of changes: lib/tsocket/tsocket_bsd.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index f673aa6..3d13dfd 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -301,21 +301,21 @@ int _tsocket_address_unix_from_path(TALLOC_CTX *mem_ctx, struct tsocket_address **_addr, const char *location) { - struct sockaddr_un sun; - void *p = sun; + struct sockaddr_un un; + void *p = un; int ret; if (!path) { path = ; } - ZERO_STRUCT(sun); - sun.sun_family = AF_UNIX; - strncpy(sun.sun_path, path, sizeof(sun.sun_path)); + ZERO_STRUCT(un); + un.sun_family = AF_UNIX; + strncpy(un.sun_path, path, sizeof(un.sun_path)); ret = _tsocket_address_bsd_from_sockaddr(mem_ctx, (struct sockaddr *)p, -sizeof(sun), +sizeof(un), _addr, location); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-776-g4b8e4ea
The branch, master has been updated via 4b8e4ea7286f045effb6feb4c7bf8c5ef4ed2f9b (commit) from 23bb1eedf68f1325a4993def22689cf2c8283f8d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 4b8e4ea7286f045effb6feb4c7bf8c5ef4ed2f9b Author: Volker Lendecke v...@samba.org Date: Sun Mar 29 00:52:22 2009 +0100 Fix a debug msg typo --- Summary of changes: source3/torture/torture.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 6029eb0..1b9e394 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5203,7 +5203,7 @@ static bool run_cli_echo(int dummy) struct async_req *req; NTSTATUS status; - printf(starting chain1 test\n); + printf(starting cli_echo test\n); if (!torture_open_connection(cli, 0)) { return false; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-597-g2d12e14
The branch, v3-4-test has been updated via 2d12e14ad277d28b7b8181525b16992f4cad1370 (commit) from 7d3b85999c6d2521ef2f9a5aace52c9a19bf2f42 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test - Log - commit 2d12e14ad277d28b7b8181525b16992f4cad1370 Author: Volker Lendecke v...@samba.org Date: Sun Mar 29 00:52:22 2009 +0100 Fix a debug msg typo --- Summary of changes: source3/torture/torture.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 6029eb0..1b9e394 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5203,7 +5203,7 @@ static bool run_cli_echo(int dummy) struct async_req *req; NTSTATUS status; - printf(starting chain1 test\n); + printf(starting cli_echo test\n); if (!torture_open_connection(cli, 0)) { return false; } -- Samba Shared Repository
Build status as of Sun Mar 29 00:00:02 2009
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2009-03-28 00:00:26.0 + +++ /home/build/master/cache/broken_results.txt 2009-03-29 00:00:29.0 + @@ -1,4 +1,4 @@ -Build status as of Sat Mar 28 00:00:02 2009 +Build status as of Sun Mar 29 00:00:02 2009 Build counts: Tree Total Broken Panic @@ -14,10 +14,10 @@ rsync30 10 0 samba-docs 0 0 0 samba-gtk6 6 0 -samba_3_X_devel 29 25 0 +samba_3_X_devel 29 24 0 samba_3_X_test 28 21 0 -samba_4_0_test 29 29 0 +samba_4_0_test 30 29 1 smb-build29 6 0 talloc 30 30 0 -tdb 27 9 0 +tdb 28 9 0