[Samba] samba 3.4.7 and windows 7 pro

2011-09-03 Thread menglim
tried following the instructions here 
http://wiki.samba.org/index.php/Windows7

but still cannot join my samba pdc.

is there any new settings that windows is requiring just to be able to join
a samba pdc? 

I tested this 3 months ago and everything seems to work fine. Now that we're
ready to deploy, everything isn't working anymore.

--
View this message in context: 
http://samba.2283325.n4.nabble.com/samba-3-4-7-and-windows-7-pro-tp3787517p3787517.html
Sent from the Samba - General mailing list archive at Nabble.com.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] smbd crashes at startup (3.4.15)

2011-09-03 Thread Holger Trittenbach
Hi,

I had troubles with samba 3.5.6 so I wanted to test a previous version. I have 
installed samba 3.4.15 from source but smbd crashes at startup with following 
output. I faced the same problem with other 3.4. versions.

# smbd -i

smbd version 3.4.15 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file 
/usr/local/samba/lib/smb.conf
Processing section [global]
Processing section [netlogon]
adding IPC service
reloading printcap cache
reload status: ok
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
added interface eth7 ip=fe80::21b:21ff:feb3:ae20%eth7 
bcast=fe80:::::%eth7 netmask=:::::
added interface eth6 ip=fe80::be30:5bff:fedb:4364%eth6 
bcast=fe80:::::%eth6 netmask=:::::
added interface eth6 ip=172.22.1.97 bcast=172.22.1.255 netmask=255.255.255.0
added interface eth7 ip=10.0.0.1 bcast=10.0.0.255 netmask=255.255.255.0
loaded services
smbldap_search_domain_info: Searching 
for:[((objectClass=sambaDomain)(sambaDomainName=FUKS))]
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
push_conn_ctx(0) : conn_ctx_stack_ndx = 1
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
init_sam_from_ldap: Entry found for user: root
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 3
push_conn_ctx(0) : conn_ctx_stack_ndx = 2
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 3
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 2
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
===
INTERNAL ERROR: Signal 6 in pid 14680 (3.4.15)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===
PANIC (pid 14680): internal error
BACKTRACE: 18 stack frames:
 #0 ./sbin/smbd(log_stack_trace+0x2d) [0xb73951ff]
 #1 ./sbin/smbd(smb_panic+0x78) [0xb739534c]
 #2 ./sbin/smbd(iface_count+0) [0xb73848a0]
 #3 [0xb708c400]
 #4 /lib/i686/cmov/libc.so.6(abort+0x182) [0xb6e83b82]
 #5 /usr/lib/libtalloc.so.2(+0x1b19) [0xb6d85b19]
 #6 /usr/lib/libtalloc.so.2(_talloc_free+0x317) [0xb6d85a57]
 #7 /usr/lib/libwbclient.so.0(wbcFreeMemory+0x2b) [0xb6f9e96b]
 #8 /usr/lib/libwbclient.so.0(wbcSidToGid+0xb3) [0xb6fa0ce3]
 #9 ./sbin/smbd(winbind_sid_to_gid+0x39) [0xb7369b54]
 #10 ./sbin/smbd(sid_to_gid+0x118) [0xb7348171]
 #11 ./sbin/smbd(create_local_nt_token+0x303) [0xb73e4605]
 #12 ./sbin/smbd(get_root_nt_token+0x141) [0xb73e4b86]
 #13 ./sbin/smbd(svcctl_init_keys+0x2e) [0xb72b1dab]
 #14 ./sbin/smbd(registry_init_full+0x8b) [0xb763dbab]
 #15 ./sbin/smbd(main+0xa6f) [0xb766dd38]
 #16 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb6e6cc76]
 #17 ./sbin/smbd(+0x83c31) [0xb712dc31]

smbd.conf:

[global]
unix charset = UTF8
workgroup = FUKS
netbios name = CONSTANZE
server string = FUKS server (Samba %v)
passdb backend = ldapsam
log level = 3
syslog = 0
max log size = 3
time server = Yes
domain logons = Yes
os level = 254
preferred master = Yes
domain master = Yes
ldap admin dn = cn=admin,o=vkw,c=de
ldap group suffix = ou=group
ldap idmap suffix = ou=idmap
ldap machine suffix = ou=clients
ldap passwd sync = yes
ldap suffix = o=vkw,c=de
ldap ssl = no
ldap user suffix = ou=people
idmap backend = ldap:ldap://127.0.0.1
idmap uid = 1-2
idmap gid = 1-2
winbind separator = /
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes

[netlogon]
comment = Network Logon Service
path = /home/netlogon
write list = root

Would be nice if anyone has some suggestions.

Holger

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba Digest, Vol 104, Issue 24

2011-09-03 Thread Christian PERRIER
Quoting Bruno CAPELETO (bruno.capel...@free.fr):
 I tested with the Win7Pro64bits : same as before with the following :
 
 apt-cache policy samba
 samba:
   Installé : 2:3.5.11~dfsg-1~bpo60+1
   Candidat : 2:3.5.11~dfsg-1~bpo60+1
  Table de version :
  *** 2:3.5.11~dfsg-1~bpo60+1 0

Hmm, well, then I can't unfortunately do much more for you...:-(

Désolé

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

[Samba] Bug(?) in Samba 3.6.0

2011-09-03 Thread Justin Piszcz

Hi,

When I connect to my machine via samba to a share (to the root volume, 
/home/$USER), samba must stat()? all file systems and it wakes my my RAID 
subsystem (also shared in smb.conf) but not accessed.


Is there anyway to prevent this?

Windows - Access \\myserver\ssd\user

Linux - Samba wakes up a sleeping RAID:

Sep 03, 2011 01:32:37PM - Controller 1
INFORMATION - Unit now in active mode: unit=0

Justin.

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


Re: [Samba] Samba4 Install Permissions

2011-09-03 Thread Andrew Bartlett
On Thu, 2011-09-01 at 14:59 -0400, Ryan Leimenstoll wrote:
 Hello everyone,
 
Very sorry for the incomplete message; I accidentally sent it
 prematurely. Anyway, i was trying to figure out if anyone had any ideas how
 to configure the permissions of the Samba4 install directory. I deleted
 mine, and reinstalling/reprovisioning does not correct them. The samba
 command will not start Samba, and doesn't return the usually startup
 feedback. Any help you can provide would be greatly appreciated.

There must be something else you have not repeated correctly, if you
wiped everything and a reinstall using exactly the same commands doesn't
work. 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org

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


[Samba] Strange permission problem when mounting a share

2011-09-03 Thread Fabrice
Hello all,

I have been struggling with a permission issue with Samba for over a week
now. I've tried many different setup, without much success.

I am using samba 3.6 on Arch Linux. The user I am testing with is a member
of the group nobody.
I have a share defined as it :

security = share

[public]
   path = /home/smbshare
   public = yes
   only guest = yes
   writable = yes
   printable = no
   create mask = 0775
   force create mode = 0775

The permissions on my *smbshare* folder (and the files within) are :

drwxrwsr-x 10 nobody  nobody  4096 Jun  5 17:35 smbshare

When I am using Dolphin (KDE) to browse my share, everything is working as
expected. I do not have to enter a pwd and I can create, rename, delete
without any problems.
For instance if I go to :

smb://127.0.0.1/public/Pictures/

And create a file with Dolphin, the permissions are exactly what I want :

-rwxrwxr-x  1 nobody  nobody 2 May 20 16:33 test-dolphin.txt

Now, I want to *mount the folder in my user home directory.* I am not using
Dophin anymore, I do everything from the terminal.

$ sudo mount -t cifs //127.0.0.1/public/Pictures /home/myuser/Pictures/
$ cd Pictures/
$ touch test-konsole.txt
touch: cannot touch `test-konsole.txt': Permission denied

*But the file is created anyway*... with the incorrect permissions
(rwxr-xr-x instead of rwxrwxr-x)

-rwxr-xr-x  1 nobody  nobody 0 Aug 28 19:01 test-konsole.txt

 So what am I missing here ? Could it be related to this problem ?

https://bugzilla.samba.org/show_bug.cgi?id=8061


Thanks!
**
-- 
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

2011-09-03 Thread Stefan Metzmacher
The branch, master has been updated
   via  3167a2b s3:smb2cli: ask for a session key in 
smb2cli_sesssetup_send()
  from  b734265 s3-spoolss: Fix bug #8236 empty notify servername.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 3167a2b8b90107b763f4dcb4987df46856b297f4
Author: Stefan Metzmacher me...@samba.org
Date:   Sat Sep 3 09:53:13 2011 +0200

s3:smb2cli: ask for a session key in smb2cli_sesssetup_send()

This is needed if we want to support SMB2 signing later.

metze

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Sat Sep  3 16:21:35 CEST 2011 on sn-devel-104

---

Summary of changes:
 source3/libsmb/smb2cli_session.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/smb2cli_session.c b/source3/libsmb/smb2cli_session.c
index 7cc1842..b1f7c33 100644
--- a/source3/libsmb/smb2cli_session.c
+++ b/source3/libsmb/smb2cli_session.c
@@ -25,6 +25,7 @@
 #include libsmb/proto.h
 #include lib/util/tevent_ntstatus.h
 #include ../libcli/auth/spnego.h
+#include ../libcli/auth/ntlmssp.h
 
 struct smb2cli_sesssetup_blob_state {
struct ntlmssp_state *ntlmssp;
@@ -170,6 +171,8 @@ struct tevent_req *smb2cli_sesssetup_send(TALLOC_CTX 
*mem_ctx,
if (!NT_STATUS_IS_OK(status)) {
goto post_status;
}
+   ntlmssp_want_feature(state-ntlmssp,
+NTLMSSP_FEATURE_SESSION_KEY);
status = ntlmssp_set_username(state-ntlmssp, user);
if (!NT_STATUS_IS_OK(status)) {
goto post_status;


-- 
Samba Shared Repository


[SCM] Samba Website Repository - branch master updated

2011-09-03 Thread Lars Müller
The branch, master has been updated
   via  e52a1f9 Remove table wrapper; tested with firefox and IE
  from  de48224 remove old TODOs and add a link to 
http://wiki.samba.org/index.php/ActiveProjects

http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit e52a1f9d30833b4872546e389508a1a5bdba2788
Author: Lars Müller l...@samba.org
Date:   Sat Sep 3 18:30:26 2011 +0200

Remove table wrapper; tested with firefox and IE

---

Summary of changes:
 archives.html |5 -
 1 files changed, 0 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/archives.html b/archives.html
index 3793fa8..e0e1498 100755
--- a/archives.html
+++ b/archives.html
@@ -4,9 +4,6 @@
 
 h2Samba Mailing Lists/h2
 
-  tabletrtd  !-- table wrapper is needed to fix 
- page breaking problem in IE --
-
 h3How to subscribe?/h3
 
 pThe easiest way to subscribe to the list is through the web interface at a 
href=http://lists.samba.org/;http://lists.samba.org//a.  Please read this 
note on ba href=/samba/ml-etiquette.htmlmailing list etiquette/a/b 
before posting./p
@@ -93,6 +90,4 @@ 
href=http://listes.ac-grenoble.fr/wws/info/samba-fr;http://listes.ac-grenoble.
 
 pConnect to a href=news://news.gmane.org/;news://news.gmane.org//a to 
read a href=http://news.gmane.org/?match=samba;Samba newsgroups/a./p
 
-  /td/tr/table  !-- close table wrapper --
-
 !--#include virtual=/samba/footer.html --


-- 
Samba Website Repository


[SCM] Samba Shared Repository - branch master updated

2011-09-03 Thread Andrew Bartlett
The branch, master has been updated
   via  389cb93 s4-provision Allow a missing idmap DB in upgrade.py
   via  329ec81 s4-provision cope with SID_NAME_WKN_GRP mappings in 
upgrade.py
  from  3167a2b s3:smb2cli: ask for a session key in 
smb2cli_sesssetup_send()

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 389cb93450b191f1ac1442f4f28e3919de38c5c5
Author: Andrew Bartlett abart...@samba.org
Date:   Sun Sep 4 12:10:36 2011 +1000

s4-provision Allow a missing idmap DB in upgrade.py

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Sun Sep  4 06:34:16 CEST 2011 on sn-devel-104

commit 329ec81288451a0110a755aeb61d4f910c393b09
Author: Andrew Bartlett abart...@samba.org
Date:   Sun Sep 4 11:58:34 2011 +1000

s4-provision cope with SID_NAME_WKN_GRP mappings in upgrade.py

Some incorrect LDAP backends have entries with this group type, but
due to the pdb_ldap code, we cannot read the group members, and we
already skip them in add_group_from_mapping_entry().

Andrew Bartlett

---

Summary of changes:
 source4/scripting/python/samba/upgrade.py |   17 ++---
 1 files changed, 14 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/upgrade.py 
b/source4/scripting/python/samba/upgrade.py
index 7386d0b..09a66db 100644
--- a/source4/scripting/python/samba/upgrade.py
+++ b/source4/scripting/python/samba/upgrade.py
@@ -109,13 +109,20 @@ def add_idmap_entry(idmapdb, sid, xid, xid_type, logger):
 str(sid), str(xid), xid_type, str(e))
 
 
-def import_idmap(idmapdb, samba3_idmap, logger):
+def import_idmap(idmapdb, samba3, logger):
 Import idmap data.
 
 :param idmapdb: Samba4 IDMAP database
 :param samba3_idmap: Samba3 IDMAP database to import from
 :param logger: Logger object
 
+
+try:
+samba3_idmap = samba3.get_idmap_db()
+except IOError as (errno, strerror):
+logger.warn('Cannot open idmap database, Ignoring: ({0}): 
{1}'.format(errno, strerror))
+return
+
 currentxid = max(samba3_idmap.get_user_hwm(), samba3_idmap.get_group_hwm())
 lowerbound = currentxid
 # FIXME: upperbound
@@ -491,13 +498,17 @@ def upgrade_from_samba3(samba3, logger, targetdir, 
session_info=None):
next_rid = rid + 1
 
 # Get members for each group/alias
-if group.sid_name_use == lsa.SID_NAME_ALIAS or group.sid_name_use == 
lsa.SID_NAME_WKN_GRP:
+if group.sid_name_use == lsa.SID_NAME_ALIAS:
 members = s3db.enum_aliasmem(group.sid)
 elif group.sid_name_use == lsa.SID_NAME_DOM_GRP:
 try:
 members = s3db.enum_group_members(group.sid)
 except:
 continue
+elif group.sid_name_use == lsa.SID_NAME_WKN_GRP:
+logger.warn(Ignoring 'well known' group '%s' (should already be 
in AD, and have no members),
+group.nt_name, group.sid_name_use)
+continue
 else:
 logger.warn(Ignoring group '%s' with sid_name_use=%d,
 group.nt_name, group.sid_name_use)
@@ -555,7 +566,7 @@ def upgrade_from_samba3(samba3, logger, targetdir, 
session_info=None):
 
 # Migrate IDMAP database
 logger.info(Importing idmap database)
-import_idmap(result.idmap, samba3.get_idmap_db(), logger)
+import_idmap(result.idmap, samba3, logger)
 
 # Set the s3 context for samba4 configuration
 new_lp_ctx = s3param.get_context()


-- 
Samba Shared Repository