RE: [Samba] what samba can't do list

2004-12-13 Thread Laurenz, Dirk
Hi,

you didn't read the samba howto?
http://de.samba.org/samba/docs/man/Samba-HOWTO-Collection/

-|  I was wondering what of this was still true?
-|  from:
-|  http://www.physics.gla.ac.uk/itsig/reports/samba_pdc_2001-11-19.html
-|  

Your questions will be answered there. The page you've been looking at, is 
outdated as it is from 2001!

Mit freundlichem Gruß,



Dirk Laurenz
Systems Engineer

Fujitsu Siemens Computers
Sales Central Europe Deutschland 
Professional Service Organisation Nord / Ost

Hildesheimer Strasse 25
30880 Laatzen
Germany

Telephone:  +49 (511) 84 89 - 18 08
Telefax:+49 (511) 84 89 - 25 18 08
Mobile: +49 (170) 22 10 781
Email:  mailto:[EMAIL PROTECTED]
Internet:   http://www.fujitsu-siemens.com

http://www.fujitsu-siemens.de/rl/servicesupport/itdienstleistungen/competencecenter.html
***
  
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] compile samba v3.0.9 vfs-errors

2004-12-13 Thread Bastian . Zacher
Hello NG,

found a thread with almost my current problem. There wasn't any solution 
out there.
Maybe anything has changed?

I want install samba v3.0.9 on an old rh linux v7.1. Currently there's no 
chance to
update the core system. But while compiling it breaks with many 
vfs-errors as shown
below:

..SNIP..
modules/vfs_shadow_copy.po(.text+0x6e2): undefined reference to 
`debug_add_class'
modules/vfs_shadow_copy.po(.text+0x700): undefined reference to 
`DEBUGLEVEL_CLASS'
modules/vfs_shadow_copy.po(.text+0x70e): undefined reference to 
`DEBUGLEVEL_CLASS_ISSET'
modules/vfs_shadow_copy.po(.text+0x73d): undefined reference to `dbghdr'
modules/vfs_shadow_copy.po(.text+0x764): undefined reference to 
`DEBUGLEVEL_CLASS'
modules/vfs_shadow_copy.po(.text+0x772): undefined reference to 
`DEBUGLEVEL_CLASS_ISSET'
modules/vfs_shadow_copy.po(.text+0x799): undefined reference to `dbghdr'
modules/vfs_shadow_copy.po(.text+0x7c0): undefined reference to `dbgtext'
Compiling modules/CP850.c with -fPIC
Building plugin bin/CP850.so
modules/CP850.po: In function `init_module':
modules/CP850.po(.text+0x1c5): undefined reference to 
`smb_register_charset'
Compiling modules/CP437.c with -fPIC
Building plugin bin/CP437.so
modules/CP437.po: In function `init_module':
modules/CP437.po(.text+0x1c5): undefined reference to 
`smb_register_charset'
..END..

Here are the first lines of the posting found in
http://lists.samba.org/archive/samba/2004-October/094787.html :

 Hi all,

 sorry for the long posting.

 Samba 2.2.x is outdated. Trying to switch to 3.0.7 with no success. The 
 vfs layer is one of my current problems. Googled some time for an 
 solution for this:
 
 [2004/10/21 20:04:00, 0] smbd/server.c:main(760)
smbd version 3.0.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
 [2004/10/21 22:12:07, 0] smbd/server.c:main(760)
smbd version 3.0.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
 [2004/10/21 22:12:12, 0] smbd/vfs.c:vfs_init_custom(256)
Can't find a vfs module [vscan-oav]
 
 The module is there, configuration in smb.conf is correct, but there 
 were many compile errors with _any_ vfs module.
 Must be a link failure, but how can I resolve this?
 
 [public]
 comment = public directory on test2
 path = /public
 public = yes
 create mode = 0777
 directory mode = 0777
 browseable = yes
 writeable = yes
 level2 oplocks = no
 blocking locks = no
 oplocks = no
 hide files = /desktop.ini/Thumbs.db/
 vfs object = vscan-oav
 vscan-oav: config-file = /etc/samba/vscan-oav.conf
 
 Here are the compile errors with the normal vfs modules from samba 
tarball:
 ...

Thanks for your help,

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


Re: [Samba] Followed John's book, frustrating smbldap-problem

2004-12-13 Thread Beast
Rolf A. Vaglid wrote:
Hi all, Im having a hard time figuring whats wrong with my Samba-ldap 
setup. I hope somebody may point out the error.
Hi,
Did you join the Win2k machine? from samba server did you able to get 
correct id for win2k machine (using id w2kclint$)? whats the error 
message in W2k?

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


[Samba] net share

2004-12-13 Thread Lapin(c)

Hi Team,

Can anybody give me some details about 'net share' command ?
I need to run locally on PDC some 'net share' command to add/remove shares an
printers. After many tries, I'm not able to add any shares, the command doesn't
send back any error but in logs I can detect a WERR_ACCESS_DENIED.

[2004/12/11 14:04:19, 5] rpc_server/srv_srvsvc_nt.c:_srv_net_share_add(1621)
  _srv_net_share_add: 1621
[2004/12/11 14:04:19, 10] rpc_server/srv_srvsvc_nt.c:_srv_net_share_add(1633)
  _srv_net_share_add: No add share command
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_debug(82)
  00 srv_io_r_net_share_add 
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_uint32(635)
   ptr_parm_error: 
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_werror(695)
  0004 status: WERR_ACCESS_DENIED
[2004/12/11 14:04:19, 5] rpc_server/srv_pipe.c:api_rpcTNP(1581)
  api_rpcTNP: called srvsvc successfully

the command is run with Administrator account:
net share add tmp=/var/tmp -U Administrator

thanks for your help

Fred



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


Re: [Samba] %U server-side script executed after user logs out - possible?

2004-12-13 Thread Tomasz Chmielewski
John H Terpstra wrote:
As far as I understand postexec, it will execute each time after user
disconnets from a given share:

Correct, but can you be sure that Samba will always receive that logoff 
information?

Considering what you said (not all logouts will send the instructions
triggering the script) - what may be a cause for such a misbehaviuor?

Reliability of network hardware infrastructure may be the key factor, however, 
I have seen apparently reliable networks where Windows NT4 and 2000 
workstation logoffs would not trigger the postexec process. Using Ethereal it 
was plain to see that the workstation did not send anything to Samba either - 
it just dropped off the network. As far as Samba was concerned the client was 
still connected and the user was still logged in.
Too bad.
I just hoped it was possible for Samba to notice that when user uploaded 
his/her profile, this also means that that user has just logged off (and 
therefore, Samba shall trigger some %U script).

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


[Samba] Compile problem with Kerberos

2004-12-13 Thread Jimmy Störbäck
Is there someone who knows were i can get a binary distribution of Samba 
with AD-support for Sun Solaris 2.6 Sparc ?
I have tried everything (even compiled on a Solaris 8) but it all fails :-(

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


Re: [Samba] Group permissions not working on 3.0.8

2004-12-13 Thread Rodrigo Severo
Paul Gienger wrote:

I believe group permissions are not working well on Samba 3.0.8.

What are the rest of the vitals on your system?  OS would be the next 
most helpful thing.
Here is a resume of my system:
Server:
Gentoo Linux with kernel 2.6.9
gcc 3.3.4 20040623
glibc 2.3.4 20040808
Samba 3.0.8 (tried 3.0.9 with the same results).
Client:
Gentoo Linux with kernel 2.6.7
gcc 3.3.4 20040623
glibc 2.3.4 20040808
Samba 3.0.8
Mounting with smbfs (got some apparently unrelated problems that are 
keeping me away of cifs).

Please let me know about any other necessary info.
TIA,
Rodrigo Severo
---
Rodrigo Severo
Fábrica de Idéias
SBS -Ed. Empire Center Sala 1301 - Cobertura
Fone: (61) 321 1357
Fax: (61) 223 1712
Brasília/DF
---
42
-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Group permissions not working on 3.0.8

2004-12-13 Thread Paul Gienger

Gentoo Linux with kernel 2.6.9
Then your post to bug 1126 is invalid, and also my thoughts on what was 
going on for you.  That's a solaris bug.

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Group permissions not working on 3.0.8

2004-12-13 Thread Rodrigo Severo
Paul Gienger wrote:

Gentoo Linux with kernel 2.6.9

Then your post to bug 1126 is invalid, and also my thoughts on what 
was going on for you.  That's a solaris bug.
I found several bugs mentioning problems similar to mine. I wrongly 
choose bug #1126 because it wasn't clear to me that it's a exclusilly 
Solaris issue.

After some extra reseach I believe I should open a new bug as none deals 
exactly with my particular problem.

Could you please advise?
Regards,
Rodrigo Severo
---
Rodrigo Severo
Fábrica de Idéias
SBS -Ed. Empire Center Sala 1301 - Cobertura
Fone: (61) 321 1357
Fax: (61) 223 1712
Brasília/DF
---
The beginning of knowledge is the discovery
of something we do not understand.
 -- Frank Herbert
-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] webmaster

2004-12-13 Thread webmaster . autoresponder
Hello! This is an auto-responder email to let you know we have received your 
correspondence. If you require a reply we will get back to you within three 
business days if possible. 

Please note: We do not refer employees to employers, nor do we hire employees! 
If you are looking for employment you must contact the employers you wish to 
work for directly from the links found on our website. This is the only email 
you will receive on this matter so please go back to our website, find 
employers you wish to work for and contact them directly! Good Luck!

All other correspondence will be answered as noted above. Thank you for 
contacting Seasonal Employment (.com)! 

Deb ([EMAIL PROTECTED])
http://www.SeasonalEmployment.com/index.htm


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


[Samba] Samba PDC Server Local SID, Domain SID, and GROUP RID Question

2004-12-13 Thread Bryan K. Walton
Hi,
I have a question regarding an issue I am having with our new
Samba PDC.  We used to be running an NT domain controller and about
two months ago, I made the transition to a Debian linux box running
Samba.  The PDC is currently running Samba 3.0.8.
My samba PDC is using the tdbsam backend and, for the most part
is working flawlessly.  However, when using smbpasswd to add samba accounts,
I always get the following error:

tdb_update_sam: Failing to store a SAM_ACCOUNT for [userid] without a primary
group RID

I have a temporary workaround.  I setup my samba accounts using
pdbedit and specifying a group RID for the new user:

pdbedit -G S-1-5-21-1590455367-7305976-751859383-513 -a username

Now, I've googled a lot on this and have read through the mailing list
archives and know that this often has to do with people not having
group mapping setup.  But I do:

jerry:~# net groupmap list | grep users
Users (S-1-5-32-545) - users
Domain Users (S-1-5-21-1590455367-7305976-751859383-513) - users

So, digging deeper, here is something I have discovered and don't know
if this might be the source of my trouble:

When I was testing my Samba PDC (the hostname is jerry), I set up a
test domain, called JERRY.  When I made the actual transition, the
domain was changed to our real domain, WECC-DOMAIN.  And yesterday, I
noticed this:

jerry:~# net getdomainsid
SID for domain JERRY is: S-1-5-21-675875985-4049016363-1657815630
SID for domain WECC-DOMAIN is: S-1-5-21-1590455367-7305976-751859383

The domain JERRY technically shouldn't exist anymore, at least I don't
need it to.  You will notice that the group RID I specify when adding accounts
using pdbedit matches WECC-DOMAIN and that my group mapping is also for 
the domain WECC-DOMAIN.  Is it possible that this SID for the JERRY
domain is interfering with my setting up accounts with smbpasswd?

Thanks!
Bryan Walton
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Win XP logon issues

2004-12-13 Thread Kang Sun
Jeffrey D. Means wrote:

 when trying to log on to my samba server (3.0a24 with LDAP)  I get a 
 message about the domain not being available or the machine account is 
 not available.  In the event log this is what the Netlogon service 
 reports about the error.

 ---
 The domain of this computer, MEANSPC has been downgraded from Windows 
 2000 or newer to Windows NT4 or older. The computer cannot function 
 properly in this case for authentication purposes. This computer needs 
 to rejoin the domain. The following error occurred:
 There are currently no logon servers available to service the logon 
 request.
 ---


Did you ever solve your problem?
I have exactly the same message. But my problem occur when I migrated XP
clients from a Win2K/AD to a Samba/PDC of the same domain name. This is a
correct message because the domain did downgraded to NT4 stile. The question
is how does it find the Logon Servers, what registry parameter to twist to
make it locate NT4 style LOGON Servicers?

Please send me mail directly at [EMAIL PROTECTED]

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


[Samba] Two Names in the same machine

2004-12-13 Thread Marcelo Agotinho Lopes
Anyone knows if it's possible to have two distinct name's in the
same machine width two ethernet boards, if not how can i distribute traffic
of the samba server for eache sector in one of the ethernet controlers.

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


[Samba] auth. username rewriting?

2004-12-13 Thread Marc Lanctot
Hello,
Now, I'm faced with a problem: I need to be able to login using the same 
username that I bind against using ldapsearch, and not the 
sAMAccountName given to me via winbind.

ie. to login using one of my AD usernames right now, I issue:
  su - ADSDOMAIN+username1
but the binddn I use to search the ldap directory is, say, username2:
  ldapsearch -x -W -Dusername2 samaccountname=bla
I'd like to be able to do:
  su - ADSDOMAIN+username2
and for winbind to recognize username1 and username2 as the same user 
account, and authenticate over the Active Directory server using 
username1. Then, I can have a list of the username mappings in a file, 
or obtain them via LDAP.

I've searched around and couldn't find anything (the username map field 
in smb.conf seems to be for something else).. and what comes to mind is 
Apache's URL rewriting: I need something similar to this but for usernames.

Is this possible via Samba/Winbind? If not, is there a way I can do it 
through PAM?

Any help is appreicated, thanks.
Marc
--
You must cut down the largest tree in the forest ... with ... a herring!!
  -- Monty Python
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] auth. username rewriting?

2004-12-13 Thread Marc Lanctot
Marc Lanctot wrote:
Hello,
(oops, I should not have deleted that first paragraph).
Basically, I just got a Linux machine to authenticate over via Active 
Directory Windows 2003 Domain Controller.

Now, I'm faced with a problem: I need to be able to login using the same 
username that I bind against using ldapsearch, and not the 
sAMAccountName given to me via winbind.

ie. to login using one of my AD usernames right now, I issue:
  su - ADSDOMAIN+username1
but the binddn I use to search the ldap directory is, say, username2:
  ldapsearch -x -W -Dusername2 samaccountname=bla
I'd like to be able to do:
  su - ADSDOMAIN+username2
and for winbind to recognize username1 and username2 as the same user 
account, and authenticate over the Active Directory server using 
username1. Then, I can have a list of the username mappings in a file, 
or obtain them via LDAP.

I've searched around and couldn't find anything (the username map field 
in smb.conf seems to be for something else).. and what comes to mind is 
Apache's URL rewriting: I need something similar to this but for usernames.

Is this possible via Samba/Winbind? If not, is there a way I can do it 
through PAM?

Any help is appreicated, thanks.
Marc


--
You must cut down the largest tree in the forest ... with ... a herring!!
  -- Monty Python
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Simple Samba connection question to new Active Directory

2004-12-13 Thread Klebanov, Lev
Hello all!
I currently have a small Windows NT 4 domain (named OLD_NETWORK).
All files are stored on a UNIX server (running Solaris) running
Samba 2.2. Runs perfect. No problems. Samba's only job in my network is JUST
TO STORE AND SERVE OUT FILES to PCs. Samba does not run as a PDC. Merely
validates valid users to get their files off UNIX server.
I believe this is the simplest possible Samba scenario!
I am going to join a neighboring departement's new Active Directory
(named NEW_NETWORK).
I already merged one PC and one user into the new AD using
Microsoft's Active Directory Migration Tool. The user and computer migrated
perfectly. The user logs onto the new AD (NEW_NETWORK) and can get their
files off UNIX server via Samba just as before. Perfect! It's like nothing
has changed!
But what will happen when I turn off the OLD_NETWORK NT 4 servers???
I assume the users I migrated will still be able to access their
files right (I can just pull the network cables from OLD_NETWORK to test
that out)?
Also, with OLD_NETWORK turned off, how will I be able to add a new
user and still have Samba let them in to read/write files on UNIX server?
Right now Samba is currently validating users by looking at the PDC
of OLD_NETWORK.
Can I change how Samba validates users? Maybe I can list them out
user by user for Samba?
HELP!

Thanks,
Keith
Rochester, NY
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba as W2k3 AD domain member; how to configure domain controller failover?

2004-12-13 Thread Alex de Vaal
Dear list,

I have a question how you configure Samba (configured as a W2k3 domain
member) to failover to a secondary AD domain controller when the connection
to the primary domain controller fails.

First some info:

- Windows 2003 Active directory (native mode), currently running with 2
domain controllers.
- Samba (version 3.0.9) running on a RHL9 server (updated with kerberos
1.3.1-7), 
   samba is compiled against kerberos 1.3.1-7 and configured as AD domain
member. 
   The winbind daemon is used for AD user validation.
- IP addresses W2k3 domain controllers: 192.168.100.100 (adm01= domain
master) and 192.168.100.101 (adm02)
- IP address RHL9 server: 192.168.100.151
- DNS is properly configured on RHL9 server and W2k3 servers.

My smb.conf file looks like this:
[global] 
workgroup = TEST
realm = TEST.COM
security = ADS
password server = 192.168.100.100, 192.168.100.101
domain master = No
dns proxy = No
idmap uid = 1-2
idmap gid = 1-2
template homedir = /data/hom/%U
template shell = /bin/bash 

[grp]
comment = Group Directory
path = /data/grp
valid users = @TEST.COM\DEP_TEST_MEMBER
read only = No
inherit permissions = Yes


resolv.conf looks like this:
nameserver 192.168.100.100
nameserver 192.168.100.101
search test.com
domain test.com 

nsswitch.conf looks like this:
passwd: files winbind
shadow: files
group:  files winbind
hosts:  files dns wins


wbinfo -g and getent group give the appropriate output. Via the chown
command I was able to give the AD group DEP_TEST_MEMBER access to the
/data/grp directory on the linux server (chmod 770 and chown root:TEST\
DEP_TEST_MEMBER 
XP clients can connect to the [grp] share on the samba server when they are
member of the AD group DEP_TEST_MEMBER and can store files on the share. So
far so good.

If I look with netstat -na I can see that the Samba server is connected to
the primary domain controller:
tcp0  0 192.168.100.151:33837   192.168.100.100:389
ESTABLISHED
tcp0  0 192.168.100.151:33843   192.168.100.100:445
ESTABLISHED

When the connection with the primary domain controller (192.168.100.100) is
suddenly lost, then samba will NOT failover to the second domain controller
(192.168.100.101). It is just trying to connect to the first configured one
all the time. net ads info will do a request at the second DC (after a
timeout of 15 sec, which I can configure to 2 seconds with ldap timeout
=2).
wbinfo -u will give after a short while the error message: Error looking
up domain users and I have difficulty to connect to the Linux server with
Telnet (it tries the user that logonwith Telnet, even the root user,  to
validate against the AD). The XP clients will loose the connection to the
[grp] share after a short while. This will become a status quo, nothing
changes.

The only thing I can do is manually failover to get Samba working properly
again. I changed the global option password server to password server =
192.168.100.101, 192.168.100.100, rebooted the Linux server and now the
Samba server connected to the second DC:
netstat -na

tcp0  0 192.168.100.151:33998   192.168.100.101:389
ESTABLISHED
tcp0  0 192.168.100.151:34004   192.168.100.101:445
ESTABLISHED

wbinfo -g and getent group give the appropriate output and the XP client
can connect to the [grp] share again.

How can I configure Samba to failover to the second DC, so even XP clients
with connection to Samba shares won't even notice it when the connection to
the primary DC gets lost? I googled for  h o u r s  for this answer and I
found that someone used net ads join -S option and used the join option
on all DC's in the AD. (look at
http://lists.samba.org/archive/samba/2004-October/093721.html). I tried that
too, but it didn't help.

This problem is bugging me for quite a while now (also in my real
environment), so it became a very important question for me (but the
solution is more important ;-), therefore any help is very much appreciated!

Regards,
Alex.


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


[Samba] samba 3.0.9 server is not seen in its workgroup

2004-12-13 Thread Mauricio Tavares
I am trying to put a Samba 3.0.9 (a Solaris 9 box) in a windows 
network where a W2000 machine is the main server/domain 
controller/whatever. All I want to do is to be able to have the machine 
seen in the workgroup; it can cheerfully ignore the windows users and 
use instead its own users (in smbpasswd and /etc/passwd).  This is what 
I have it set up as (and probably should be changed):

[global]
   workgroup = MCH
   server string = Yucca
   netbios name = yucca
   local master = yes
   os level = 33
   preferred master = yes
When I browse the MCH workgroup, yucca is not there. However, I have no 
problem mouting it by entering its address, as in, say, 
//yucca.somewhere.com/user. Can anyone see what I am doing wrong here?

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


[Samba] NetBIOS-Remotecache

2004-12-13 Thread Sascha Bieler
 Hi out there.
 
 I have not been able to solve the following problem yet.
 
 I configured samba-3.0.9 as LMB/PDC with correct DNS and WINS.
 When I log on with my Windowsbox (no matter which version) and do 
 immidiatly
 an nbtstat -c on the command-line I get:
 snip
 
 
   NetBIOS-Remotecache-Namentabelle
 
 Name  TypHostadresse Dauer [Sek.]
 -
 SNEAKER1C  GRUPPE  192.168.10.1395
 snap
 
 
 
 
 When I now import lmhosts.sam with:
 snip
 
 
 192.168.10.1 hunter #PRE #DOM:sneaker
 snap
 
 
 
 I get the correct information:
 snip
 
 
   NetBIOS-Remotecache-Namentabelle
 
 Name  TypHostadresse Dauer [Sek.]
 -
 SNEAKER1C  GRUPPE  192.168.10.1-1
 HUNTER 03  EINDEUTIG   192.168.10.1-1
 HUNTER 00  EINDEUTIG   192.168.10.1-1
 HUNTER 20  EINDEUTIG   192.168.10.1-1
 snap
 
 
 
 What have I not configured correctly???
 
 Greetings
 
 Sascha
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://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


Re: [Samba] can you automatically add a DNS entry when using net to join AD

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lucas Machado wrote:
| I looked through the net man page and googled with no
| luck...I was wondering if it is possible to have a DNS entry
| created for the machine I add using net ads join without
| me having to manually add it to the DNS.
We don't currently do this but you could wrap 'net ads join' with
a script that did the update for you.  No examples on hand.  Sorry.

cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBveWJIR7qMdg1EfYRAhySAJ9H7twyHBkg+FpHOC/2dk5K0mXeOACfRz/l
KyVOI/SFCSEUBXDsEaK6+eQ=
=vTlH
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Question about samba 3.0.9

2004-12-13 Thread Richmond Dyes
The only catch I have found in all the solutions is after you move a 
profile to the samba server using the administrative(root) user, is that 
the owner and group is root and you have to change ownership. 
Otherwise, everything worked fine.

Paul Gienger wrote:

I do this pretty regularly ... I just copy the desktop, mydocuments, 
cookies, favorites. The only thing I tend to loose is the desktop 
shortcut for the quick launch tool bar I can never get it back 
either .. been looking for it for years now...

Along with that you will also lose every possible application specific 
setting that was stored in the user's portion of the registry. In my 
case you would also lose Mozilla profiles, gaim history, and a whole 
host of other things scattered about.

BTW, in my particular case, using XP, the quick launch was in
C:\Documents and Settings\username\Application 
Data\Microsoft\Internet Explorer\Quick Launch

profiles.  When I move a user now, it makes a new desktop.  I want 
to use the user's local desktop, just transfer it to the server.  
any ideas?

I've posted this solution several times and never heard anyone say 
that really sucks because... so I'll post it again.  Note that this 
is a bit tedious, but then again, your users will probably whine that 
it's also tedious for them to set everything back up again, so the 
choice is yours on who gets the pain of creating the settings.

When you've got some profile you need to migrate from one setting to 
another, that being from a local-on-the-machine/non-domain profile to 
a roaming/domain profile, or moving a profile from one domain to 
another, etc.  you can do the following.

before starting, make sure that you don't have any profile on the 
server with the username in question and you aren't using a network 
Default User.

1.Reboot to clear up any locks that may be on the profile's registry.
2. Log in as administrator (doesn't really matter which but I usually 
use local)
3. Find the user's profile you want to base the new user off of and 
move it to some safe/hidden location.  You do this mainly so that if 
the usernames match you don't end up with a user.domain profile 
directory.
4. Move the default user directory (it will be hidden) to a location 
not in Docs and Settings
5. Copy the old user profile back to Docs and Settings and then rename 
it Default User
6. Log in as the user on this workstation.  It may take a while to do 
the 'loading your personal settings' step depending on how large the 
old profile is.
7. Reboot and log back in as admin
8. Delete the new 'Default User' and move the original one back to 
where it was.

You can add tweaks such as changing the roaming to local profile and 
such as you see fit.  This may also work using a network Default user 
instead of the local one if you're so inclined, but I haven't tried.  
There are some variations that may need to be done if you've got some 
more complex situations, but hopefully this is close enough to get you 
going.


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


[Samba] TDB Files From Mono/C#

2004-12-13 Thread Adam Tauno Williams
Does anyone have any code for inspecting Samba TDB files from Mono or
just in C#?  Is the format of the TDB file documented somewhere?

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


Re: [Samba] Machine confused about localhost

2004-12-13 Thread Paul Gienger

I run rpcclient without specifying an IP address and I get the 
following error:

# /products/samba/bin/rpcclient //localhost -U novosirj
Password:
cli_full_connection: failed to connect to //LOCALHOST20 (0.0.0.0)
Cannot connect to server.  Error was NT_STATUS_UNSUCCESSFUL
...the machine knows what localhost is otherwise:
...anyone have any insights?
(Speculating wildly like I usually do)  I'd say that is because 
smbd/nmbd don't register the name localhost at all.  When you say telnet 
localhost you're asking dns to look it up, which usually responds 
properly via /etc/hosts or possibly your dns server ( I think ours 
responds 127.0.0.1 if you ask who localhost is).  When you ask for 
//localhost you're asking for the netbios host at localhost, which no 
one has claimed.

Try without the // or with //servername and see if that works out 
better for you.

Sorry if my usage of nmbd/netbios is bad.
--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Urgent problem with Samba and Windows NT4...

2004-12-13 Thread Rainer Hantsch
Hello!

I tried to get some help from the IRC before, but the problem seems to be too
complicated to discuss it there.
PLEASE, be so kind and help me solving this problem, I stuck and I must get
this working as quick as possible.

Here an overview and some details:
In one well protected LAN (so I have no need to encrypt passwords at all,
which simplifies user management on servers in turn because I do not have to
add users twice (once to Linux, once to samba) I have two SAMBA servers.

.) The old one is running on SuSE 6.4 and is version 2.0.6.
   To this server, all current windows clients (NT4, Win2000, WinXP) can
   connect, and everything works fine.
.) The new server is running Samba 3.0.7-5.2-SUSE on SuSE 9.2.
   To this server, only Win2000 and WinXP, but not NT4 can connect.
.) The old server can use 'smbmount' to mount the new server with samba,
   which was done with several usernames for testing, so it must configured
   theoretically well.

So the bis question is: Why can't Win-NT4 connect to the new server?

Below I appended the important parts of both smb.conf files and a little
snippet of /var/log/samba/log.smb.

If somebody can help, please.

Thanks,

Rainer




Old server's smb.conf, the server who is working well:
---snip-
[global]
   workgroup = satz
   guest account = nobody
   keep alive = 30
   os level = 96
   kernel oplocks = false
   security = user
   encrypt passwords = no
   printing = bsd
   printcap name = /etc/printcap
   load printers = yes
   socket options = TCP_NODELAY
   map to guest = Bad User
   interfaces = 10.0.0.2/255.0.0.0
   wins support = no

[WinWork]
   comment = Windows-Daten
   directory = /userdata/WinWork
   browseable = yes
   read only = no
   locking = yes
   force create mode = 0777
   force directory mode = 0666
...
...
---snap-



New server's smb.conf:
This server can only be mounted from smbmount, Win2k and WinXP
---snip-
[global]
log level = 3 passdb:5 auth:10
workgroup = SATZ
encrypt passwords = no
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
#   logon path = \\%L\profiles\.msprofile
#   logon home = \\%L\%U\.9xprofile
#   logon drive = P:

# Here I tried forcing some settings (no difference)
security = user
acl compatibility = Auto

[applework]
comment = Apple Working Dir
path = /userdata/work
browseable = yes
read only = no
directory mask = 0777
create mask = 0666
force directory mode = 0777
force create mode = 0666
...
...
---snap-



A short snippet of the samba-logfile. User wewerka is existing and
has a valid password, though she cannot log in to the new server. I wonder
about username Standard. As you can see, User roza can login.
---snip---
[2004/12/13 13:31:02, 1] smbd/service.c:make_connection_snum(648)
  10.0.0.77 (10.0.0.77) connect to service applework initially as user roza (u
id=505, gid=100) (pid 1258)
[2004/12/13 13:31:02, 1] smbd/service.c:close_cnum(837)
  10.0.0.77 (10.0.0.77) closed connection to service applework
[2004/12/13 13:31:02, 1] smbd/service.c:make_connection_snum(648)
  10.0.0.77 (10.0.0.77) connect to service applework initially as user roza (u
id=505, gid=100) (pid 1258)
[2004/12/13 13:31:02, 1] smbd/service.c:close_cnum(837)
  10.0.0.77 (10.0.0.77) closed connection to service applework
[2004/12/13 16:32:27, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User Standard !
[2004/12/13 16:32:31, 0] smbd/service.c:make_connection(800)
  10.0.0.31 (10.0.0.31) couldn't find service .
[2004/12/13 13:31:02, 1] smbd/service.c:close_cnum(837)
  10.0.0.77 (10.0.0.77) closed connection to service applework
[2004/12/13 16:32:27, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User Standard !
[2004/12/13 16:32:31, 0] smbd/service.c:make_connection(800)
  10.0.0.31 (10.0.0.31) couldn't find service .
[2004/12/13 16:32:40, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User Standard !
[2004/12/13 16:32:40, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User Standard !
[2004/12/13 16:33:10, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User wewerka !
[2004/12/13 16:33:32, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User wewerka !
[2004/12/13 16:33:56, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User wewerka !

[Samba] Password configuration

2004-12-13 Thread John Graves
I am trying to get SAMBA running in a mixed peer to peer environment.  I 
have win2k, win98 and winxp systems on the network. It seems as though 
Samba wants a password regardless of the configuration in smb.conf.

Any suggestions or pointers as to what I am missing?
Thanks
John G.
My Config file:
+++ cut here ++
# Samba config file created using SWAT
# from 90.0.0.80 (90.0.0.80)
# Date: 2004/12/13 14:13:42
# Global parameters
[global]
   workgroup = AUDUBON
[homes]
   read only = No
   guest ok = Yes
++cut here +
--
John Graves
Dynamic Devices Inc.
781-245-9100
Your source for 
Security, Wireless LANS  Wide Area Networking for converged Data, Voice and Video

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


[Samba] FreeBSD Setup

2004-12-13 Thread Tom Skeren
I created a little FreeBSD setupguide for joining samba to a W2K ADS domain.
http://www.fsklaw.com/fbsdconfig.html
Hope it helps.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] TDB Files From Mono/C#

2004-12-13 Thread Adam Tauno Williams
  Does anyone have any code for inspecting Samba TDB files from Mono or
  just in C#?  Is the format of the TDB file documented somewhere?
 Only in the source code I'm afraid. The tdb C code would convert to
 Java or C# quite easily,

Will take a look.

  although I'm thinking the locking semantics
 and mmap specific parts may cause some issues.

Only interested in reading values, particularly the administrative
password  DN in secrets.tdb.  We've written some utilities for easing
Samba/LDAP integration (including those gnarly hook scripts), but we've
so far avoided having to do any local configuration so trying to just
use the authentication information already in place.

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


Re: [Samba] tdbsam and variables

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Marc Petitmermet wrote:
| Dear List Members
|
| We are trying to setup samba PDC with tdbsam backend.
|
| First question: When Home Directory is not set in tdbsam
| does samba  just use the setting of logon home in smb.conf?
| And when it's set does  it ignore the smb.conf setting?
You actually can't exlude these settings from the
tdbsam records IIRC.  I'd have to go back and look again
to be sure.  So the home directory path in the tdb record
would always take precedence over the smb.conf settings.
But like I say, I would have to double check this in the code.

cheer,s jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvf0+IR7qMdg1EfYRAhzGAJ4/F/mhmm6UaSOXqPJSiN7Ok8avEwCg0Kyj
EB1+aeUz9ILzrPBakWHxEVU=
=pl5O
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: domain admin issue *solved*

2004-12-13 Thread Heinrich Rebehn
Trey Nolen wrote:


http://groups.google.com/groups?hl=enlr=ie=UTF-8threadm=1bKKG-3JE-47%40gated-at.bofh.itrnum=1prev=/groups%3Fq%3Dsamba%2Bdomain%2Badmins%2Bproblem%26ie%3DUTF-8%26hl%3Den%26btnG%3DGoogle%2BSearch
Bottom line:
Stop samba, delete group_mapping.tdb *and* secrets.tdb, start samba.
Make sure you have a backup of secrets.tdb, at least on production
servers.
The clients probably have to rejoin the domain after deleting secrets.tdb.
It's also possible that the tdb-files are in different directories if you
are trying
out different versions/distributions of samba. XP-clients also cache the
ten latest logins
by default to add to the confusion...
Other than that I have never had problems with the Domain Admins-stuff
working on the client with any samba 3.0.x.

This got it.  The trick was deleting the secrets.tdb as well.  I still don't
know why it didn't work the first time, but I it si working now. Thanks for
the help.
Trey Nolen
Thanks for this tip. This also fixed the problem for me. I had been 
looking for days.. So this still happens with Samba 3.08.

--
Heinrich Rebehn
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax   :-3341
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] File Server Samba e W2003

2004-12-13 Thread APAULINO
Hi,


I am with an error when I try to access a share samba  of a W2003,  of a 
w98/XP and 2000 this ok,  quem can help me to understand because. Below 
smb.conf:



# Samba config file created using SWAT
# from 10.255.190.2 (10.255.190.2)
# Date: 2004/12/13 10:28:29

# Global parameters
[global]
workgroup = GVNET12
server string = Samba Server Goiania
security = SERVER
map to guest = Bad User
password server = 10.255.220.18
guest account = pcguest, guest
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon script = %G.BAT
domain logons = Yes
dns proxy = No
wins server = 192.168.1.3
netbios name = GVGNA01
null passwords = Yes
encrypt passwords = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[netlogon]
comment = Network Logon Service
path = /samba1/netlogon
browseable = No
share modes = No

[log]
comment = Arquivos de Log
path = /var/log
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
preserve case = No
browseable = No

[samba1]
comment = Arquivos
path = /samba1
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes
preserve case = No
browseable = No

[publico]
comment = Arquivos da Filial Goiania
path = /samba1/publico
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes
preserve case = No
browseable = No

[consorci]
comment = Arquivos da Rodobens Consorcio
path = /samba1/consorcio
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
preserve case = No
browseable = No

[seguros]
comment = Arquivos da Rodobens Seguros
path = /samba1/seguros
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
preserve case = No
browseable = No

[juridico]
comment = Arquivos do Juridico
path = /samba1/juridico
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
preserve case = No
browseable = No

[soft]
comment = Arquivos Verdados Instalacao
path = /samba2/soft
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes
preserve case = No
browseable = No

[distribution]
comment = Dispatch Logon Integrado
path = /samba2/distribution
force user = root
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes
preserve case = No
share modes = No

[inoupd$]
comment = Arquivos Verdados Instalacao
path = /samba1/inoc60/sig
force user = root
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes
preserve case = No
browseable = No
share modes = No

[Scua]
comment = Base do Scua
path = /samba1/scua
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = Yes




Alberto Balbino Paulino
Rodobens TI Compartilhada - Centro Operacional
PABX (17) 3214-3666 Ramal 1155  Fax: (17) 233-2050
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] tdbsam and variables

2004-12-13 Thread Marc Petitmermet
| First question: When Home Directory is not set in tdbsam
| does samba  just use the setting of logon home in smb.conf?
| And when it's set does  it ignore the smb.conf setting?
You actually can't exlude these settings from the
tdbsam records IIRC.  I'd have to go back and look again
to be sure.  So the home directory path in the tdb record
would always take precedence over the smb.conf settings.
But like I say, I would have to double check this in the code.
I would be really glad if you could check this. If what you say is true 
than the example Big 500 Users Example makes just no sense to me. The 
example only uses a tdbsam backend and then the setting for logon home 
and logon path could just be removed because it's the  tdbsam which 
counts. And when we cannot use variables in tdbsam I begin to wonder 
what the advantages of a tdbsam backend against a smbpasswd file should 
be. Is this somewhere documented which backend supports variables and 
which backend supports the settings in smb.conf and since which version 
of samba? Thanks, Jerry.

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


[Samba] No locking available. Running Samba would be unsafe

2004-12-13 Thread Bill S
Hello Samba folks,
 
A couple years ago I installed Samba 2.2.0 on our HP9000 running hpux
10.20.
I am now trying to install it on a customer's HP9000 and am getting the
error 
No locking available. Running Samba would be unsafe while executing the
configure command. I got that error a couple years ago and resolved it by
linking /usr/bin/cc and /opt/ansic/bin/cc but that is not working this time.
I also
tried linking /usr/bin/cc and /usr/ccs/bin/cc but that did not work either.
Any
ideas?
 
- Bill
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Solaris: Linking bin/smbd, /usr/ccs/bin/ld: illegal option -- E

2004-12-13 Thread Chuck Theobald
Hey Gordon,
If you install lots of open source software (e.g. compile much from 
source), I recommend you leave the Sun ld named ld.sun.  This way, you will 
not run into any Solaris-ld issues with other S/W.  GNU is the way!

Chuck
At 01:43 PM 12/13/2004, Gordon Thagard wrote:
Well fancy that -  It worked!
# mv /usr/ccs/bin/ld /usr/ccs/bin/ld.sun
# ./configure
# make
# make install
# mv /usr/ccs/bin/ld.sun /usr/ccs/bin/ld
Much thanks!
Gerald (Jerry) Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gordon Thagard wrote:
| Solaris 9
| Samba 3.0.9
| gcc 3.3.2 (from SunFreeware)
| config opts: ./configure --prefix=/opt/samba
...
| Compiling smbd/server.c
| Linking bin/smbd
| /usr/ccs/bin/ld: illegal option -- E
| usage: ld [-6:abc:d:e...
Use GNU ld is my suggestion.  I don't link the SUn linker.
I just rename /usr/ccs/bin/ld to something else


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvfXEIR7qMdg1EfYRAp4TAJ99iIm0QDEew4mLOObAlL2xxHMOGQCgwGx7
OMThFi6kjTK/+RNUkbJeIF0=
=GvNh
-END PGP SIGNATURE-
--
Gordon Thagard, UNIX Systems Administrator
FAMU-FSU College of Engineering
Communications  Multimedia Services
2525 Pottsdammer Street Suite A332-L
Tallahassee, FL 32310-6046
V: (850) 410-6449
F: (850) 410-6484
M: (850) 443-4220
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
Chuck Theobald
System Administrator
The Robert and Beverly Lewis Center for Neuroimaging
University of Oregon
P: 541-346-0343
F: 541-346-0345
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbfs Unicode patch for 2.4.x kernel

2004-12-13 Thread Julian Pellico
Hi,

I'm looking for a patch to the redhat 2.4 kernel to add Unicode
support to smbfs. My particular version is 2.4.26. I searched the list
archives and found someone named Urban Widmark claimed to have a patch
for 2.4.18, but his URL is outdated.

If anyone has this patch, please let me know -- this would help me
greatly. Thanks!

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


RE: [Samba] smbfs Unicode patch for 2.4.x kernel

2004-12-13 Thread Geoff Scott
The samba list deals only with Samba not smbfs.  Other list members have
said in the past to people with queries like yours that there is a specific
list for smbfs/cifs.

Regards Geoff Scott


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


[Samba] Re: smbfs Unicode patch for 2.4.x kernel

2004-12-13 Thread Dave Jones
On Mon, Dec 13, 2004 at 03:00:07PM -0800, Julian Pellico wrote:

  I'm looking for a patch to the redhat 2.4 kernel to add Unicode
  support to smbfs. My particular version is 2.4.26.

There was no Red Hat 2.4.26 kernel.

Dave

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


[Samba] Re: smbfs Unicode patch for 2.4.x kernel

2004-12-13 Thread Nerijus Baliunas
On Mon, 13 Dec 2004 15:00:07 -0800 Julian Pellico [EMAIL PROTECTED] wrote:

 I'm looking for a patch to the redhat 2.4 kernel to add Unicode
 support to smbfs. My particular version is 2.4.26. I searched the list
 archives and found someone named Urban Widmark claimed to have a patch
 for 2.4.18, but his URL is outdated.

 If anyone has this patch, please let me know -- this would help me
 greatly. Thanks!

http://www.errror.org:443/~errror/smbfs-lfs.html

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


Re: [Samba] compile samba v3.0.9 vfs-errors

2004-12-13 Thread Thomas Bork
[EMAIL PROTECTED] schrieb:
found a thread with almost my current problem. There wasn't any solution 
out there.
Maybe anything has changed?

I want install samba v3.0.9 on an old rh linux v7.1. Currently there's no 
chance to
update the core system. But while compiling it breaks with many 
vfs-errors as shown
below:

..SNIP..
modules/vfs_shadow_copy.po(.text+0x6e2): undefined reference to 
`debug_add_class'
modules/vfs_shadow_copy.po(.text+0x700): undefined reference to 
`DEBUGLEVEL_CLASS'
[...]
Here are the first lines of the posting found in
http://lists.samba.org/archive/samba/2004-October/094787.html :
you have to patch configure, because your ld has not an date in his 
version string and configure expect this.

3.0.10 will come with an changed configure script. Attaching patch for 
3.0.9.

der tom
--- samba-3.0.9/source/configure.orig   Fri Nov 19 23:29:34 2004
+++ samba-3.0.9/source/configureFri Nov 19 23:29:08 2004
@@ -3174,17 +3174,32 @@
 
 
 if test $ac_cv_prog_gnu_ld = yes; then
-   ac_cv_gnu_ld_version=`$LD -v 2/dev/null | head -1`
-   echo $as_me:$LINENO: checking GNU ld release date 5
-echo $ECHO_N checking GNU ld release date... $ECHO_C 6
-   ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 
's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
-   echo $as_me:$LINENO: result: ${ac_cv_gnu_ld_date} 5
-echo ${ECHO_T}${ac_cv_gnu_ld_date} 6
-   if test $ac_cv_gnu_ld_date -lt 20030217; then
-   ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
-   fi
+  ac_cv_gnu_ld_version=`$LD -v 2/dev/null | head -1`
+  if `echo $ac_cv_gnu_ld_version | grep -q -E 
^.*[2-9][0-9][0-9][0-9][-]*[01][0-9][-]*[0-3][0-9].*$`; then
+echo $as_me:$LINENO: checking GNU ld release date 5
+echo $ECHO_N checking GNU ld release date... $ECHO_C 6
+ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 
's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
+echo $as_me:$LINENO: result: ${ac_cv_gnu_ld_date} 5
+echo ${ECHO_T}${ac_cv_gnu_ld_date} 6
+if test $ac_cv_gnu_ld_date -lt 20030217; then
+  ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
+fi
+  else
+echo $as_me:$LINENO: checking GNU ld release version 5
+echo $ECHO_N checking GNU ld release version... $ECHO_C 6
+ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 
's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
+echo $as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr} 5
+echo ${ECHO_T}${ac_cv_gnu_ld_vernr} 6
+ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
+echo $as_me:$LINENO: result: ac_cv_gnu_ld_vernr_major 
${ac_cv_gnu_ld_vernr_major} 5
+ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
+echo $as_me:$LINENO: result: ac_cv_gnu_ld_vernr_minor 
${ac_cv_gnu_ld_vernr_minor} 5
+if test $ac_cv_gnu_ld_vernr_major -lt 2 || test 
$ac_cv_gnu_ld_vernr_minor -lt 14; then
+  ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
+  echo $as_me:$LINENO: result: 
ac_cv_gnu_ld_no_default_allow_shlib_undefined 
${ac_cv_gnu_ld_no_default_allow_shlib_undefined} 5
+fi
+  fi
 fi
-
 
 echo $as_me:$LINENO: checking for library containing strerror 5
 echo $ECHO_N checking for library containing strerror... $ECHO_C 6
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Winbindd forgetting the user maps

2004-12-13 Thread Christoph Scheeder
Hi,
this is a symptom of having the samba .tdb files in a place where they 
get deleted by the bootup-scripts of your distribution.
That is a very bad place for them.
Either modify the bootup-script(s) or recompile samba giving configure a 
safe place for the .tdb files.

Christoph
Mark Le Noury schrieb:
Hi,
I have a bit of a problem - everytime our samba server reboots, winbindd
seems to forget its user and group id mapping. Also after I have
rebooted, I need to run getent passwd and getent group otherwise it
looks like this:
 drwx--2 10183root 4096 Dec  8 16:12 dir0080

After I have run those commands, the directories are owned by different
users.
Thanks for any help,
Mark Le Noury
Barone, Budge  Dominick
Tel. (+2711)532 8415
Cell. +27825624412
E-mail: [EMAIL PROTECTED]
This e-mail is confidential and subject to the disclaimer
published on the website http://www.bbd.co.za/emaildisclaimer.htm.

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


[Samba] Re: Unable to save files to share

2004-12-13 Thread Darryl
Des Dougan des at DouganConsulting.com writes:

 
 Following the recent trans2 exploit announcement, SuSE released kernel
 2.6.5-7.111.5 to deal with it. I've installed the kernel upgrade on my
 desktop (SuSE 9.1, Samba 3.0.4). However, with this kernel, when I try
 to save to a share on my server (Samba 2.2.8), I get this set of error
 messages:

I have a similar problem with later Kernels on Debian.  2.6.7 is okay but 2.8
and 2.9 produce similar errors.  I posted yesterday but as an smbfs rather than
Samba error, which apparently belongs on another list.

I will let you know if I find a solution.

regards,

Darryl


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


Re: Re: [Samba] compile samba v3.0.9 vfs-errors

2004-12-13 Thread Bastian . Zacher
Hello Tom,

thanks for your patch. But I get trouble patching my configure. Is the 
patch available for download -
maybe it's bogus due to copy'n'paste or what else. Any other hint?

Thanks,

bastian



[EMAIL PROTECTED] source]# patch configure conf.patch
patching file configure
Hunk #1 FAILED at 3174.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej

[EMAIL PROTECTED] source]# cat configure.rej
***
*** 3174,3190 


  if test $ac_cv_prog_gnu_ld = yes; then
-ac_cv_gnu_ld_version=`$LD -v 2/dev/null | head -1`
-echo $as_me:$LINENO: checking GNU ld release date 5
- echo $ECHO_N checking GNU ld release date... $ECHO_C 6
-ac_cv_gnu_ld_date=`echo 
$ac_cv_gnu_ld_version | sed -n 
's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
-echo $as_me:$LINENO: result: 
${ac_cv_gnu_ld_date} 5
- echo ${ECHO_T}${ac_cv_gnu_ld_date} 6
-if test $ac_cv_gnu_ld_date -lt 20030217; then
- ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
-fi
  fi
-

  echo $as_me:$LINENO: checking for library containing strerror 5
  echo $ECHO_N checking for library containing strerror... $ECHO_C 6
--- 3174,3205 


  if test $ac_cv_prog_gnu_ld = yes; then
+   ac_cv_gnu_ld_version=`$LD -v 2/dev/null | head -1`
+   if `echo $ac_cv_gnu_ld_version | grep -q -E 
^.*[2-9][0-9][0-9][0-9][-]*[01][0-9][-]*[0-3][0-9].*$`; then
+ echo $as_me:$LINENO: checking GNU ld release date 5
+ echo $ECHO_N checking GNU ld release date... $ECHO_C 6
+ ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 
's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
+ echo $as_me:$LINENO: result: ${ac_cv_gnu_ld_date} 5
+ echo ${ECHO_T}${ac_cv_gnu_ld_date} 6
+ if test $ac_cv_gnu_ld_date -lt 20030217; then
+   ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
+ fi
+   else
+ echo $as_me:$LINENO: checking GNU ld release version 5
+ echo $ECHO_N checking GNU ld release version... $ECHO_C 6
+ ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 
's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
+ echo $as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr} 5
+ echo ${ECHO_T}${ac_cv_gnu_ld_vernr} 6
+ ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 
1`
+ echo $as_me:$LINENO: result: ac_cv_gnu_ld_vernr_major 
${ac_cv_gnu_ld_vernr_major} 5
+ ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 
2`
+ echo $as_me:$LINENO: result: ac_cv_gnu_ld_vernr_minor 
${ac_cv_gnu_ld_vernr_minor} 5
+ if test $ac_cv_gnu_ld_vernr_major -lt 2 || test 
$ac_cv_gnu_ld_vernr_minor -lt 14; then
+   ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
+   echo $as_me:$LINENO: result: 
ac_cv_gnu_ld_no_default_allow_shlib_undefined 
${ac_cv_gnu_ld_no_default_allow_shlib_undefined} 5
+ fi
+   fi
  fi

  echo $as_me:$LINENO: checking for library containing strerror 5
  echo $ECHO_N checking for library containing strerror... $ECHO_C 6
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] multiple loginscrips Samba 3

2004-12-13 Thread Götz Reinicke
Hi,
googling arround, I found an example smb.conf containig
logon script = %m.bat
logon script = %U.bat
My question:
is it possible to have such a login script chain??
What I'd like to have is that I can have special user-scripts for some 
users and normal groupscripts for all other users: e.g.:

## If user foo, bar1, test,... logs in use:
logon script = %U.bat
## Users of primary group one, two, students,... use
logon script = %G.bat
Is this possible??
Regards
Götz Reinicke
--
Götz Reinicke
IT Koordinator - IT OfficeNet
Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
[EMAIL PROTECTED]
Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] VPN and browsing

2004-12-13 Thread Jim Potter
Hi All,
  I've set up a PPTP VPN system to provide remote access to my work 
LAN, but I can't get (and cannot see how to get) computer browsing to 
work for clients connecting over VPN (they cannot see any computers in, 
and do not appear themselves in network neighbourhood).
   From my understanding, every subnet needs to elect a local browse 
master - in this situation, the only machine on the subnet is the the 
client connecting via VPN, so I assume it takes on this job. But it 
doesn't work. Can anyone shed any light on this, or suggest other ways 
of doing this please

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


Re: [Samba] compiling problem with ldap support

2004-12-13 Thread Adi Nugraha
I used the default configure option (just ./configure), I also tried
./configure --prefix=/usr/local/samba --with-ldap as well, the configure
doesn't say any error, but when i try make it was like my last message

- Original Message -
From: thomas constans [EMAIL PROTECTED]
To: Adi Nugraha [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 3:31 PM
Subject: Re: [Samba] compiling problem with ldap support


Le mardi 14 décembre 2004 à 10:55 +0700, Adi Nugraha a écrit :

  
  can anyone help me with this.
 additional info, I was able to compile it before installing OpenLDAP(I
 wasn't intending on using LDAP backend at first), which one should be
 installed first Open LDAP or Samba ? I checked previous threads, but it
was
 for a solaris 9, i'm using  mandrake linux 9.1,

what are your configure options ?

for ldap: there are 2 options: --with-ldap and --with-ldapsam

i think the last one is déprecated so --with-ldap should be used instead

hope this helps


--
Thomas Constans
http://www.opendoor.fr
04 78 68 17 34



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


[Samba] Can Windows client detect symlinks on Samba server?

2004-12-13 Thread Peter Hartley
Hi there,

Is there a way, in a Win32 program running on a client, to detect when
two files presented by a Samba server running on a Unix server are, in
fact, symlinks to the same file? Some sort of server-specific properties
perhaps? dev_t and ino_t? Ideally, accessible as an unprivileged user?
What about hardlinks?

I'm guessing not, because Cygwin doesn't see symlinks as symlinks.

Client is Windows XP, server is Samba 3.0.9 on Linux.

Peter


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


Re: [Samba] multiple loginscrips Samba 3

2004-12-13 Thread Adam Tauno Williams
 googling arround, I found an example smb.conf containig
 logon script = %m.bat
 logon script = %U.bat
 My question:
 is it possible to have such a login script chain??

No.

A subsequent value read in the configuration overrides a previously read
value.

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


Re: [Samba] compiling problem with ldap support

2004-12-13 Thread Daniel Wilson
Actually --with-ldap is set to yes by default... --with-ldapsam is to be 
used if you want ldap as your backend, which requires openldap-devel 
packages (ldap.h etc...) and its NOT depreciated, i used it in the 
current 3.0.9.

So you need to install openldap stuff first! as samba needs the librarys
regards
Adi Nugraha wrote:
I used the default configure option (just ./configure), I also tried
./configure --prefix=/usr/local/samba --with-ldap as well, the configure
doesn't say any error, but when i try make it was like my last message
- Original Message -
From: thomas constans [EMAIL PROTECTED]
To: Adi Nugraha [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 3:31 PM
Subject: Re: [Samba] compiling problem with ldap support
Le mardi 14 décembre 2004 à 10:55 +0700, Adi Nugraha a écrit :
 

can anyone help me with this.
 

additional info, I was able to compile it before installing OpenLDAP(I
wasn't intending on using LDAP backend at first), which one should be
installed first Open LDAP or Samba ? I checked previous threads, but it
   

was
 

for a solaris 9, i'm using  mandrake linux 9.1,
   

what are your configure options ?
for ldap: there are 2 options: --with-ldap and --with-ldapsam
i think the last one is déprecated so --with-ldap should be used instead
hope this helps
--
Thomas Constans
http://www.opendoor.fr
04 78 68 17 34

 

--

Daniel Wilson
Systems Administrator
IT  Communications Service
University of Sunderland
Unit1 Technology Park
Chester Road
Sunderland
SR2 7PT
Tel: 0191 515 2695
This e-mail contains information which is confidential and may be privileged and is for the exclusive use of the recipient. 
It is the responsibility of the recipient to ensure that this message and its attachments are virus free. 
Any views or opinions presented are solely those of the author and do not necessarily represent those of the University, unless otherwise specifically
stated.


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


[Samba] Linux Administration Course

2004-12-13 Thread atrc_102
Applied Technology Research Center presents.

Linux and Unix Fundamentals (LPI 101/102) - 40 Hours Course in Karachi, 
Pakistan.

3 Hours class once per week.

Time slots available Monday to Saturday 19:00 - 22:00 

Rs. 5000 per participant.

To register please call Mrs. Irfana on 92-333-2335380, 92-21-4980523

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


[Samba] winbind changes from 3.04 vs. 3.08 3.09 ?

2004-12-13 Thread Adam Cody
We have a mixed mode NT4 and W2K domain trust wan. The W2K domains are
for Exchange and the NT4 are for fileservers/users. There's about 5
domains of each throughout our company.

When I was testing 3.04, I could see account from all domains via
winbind -- getent passwd would return   NTlocal\user, w2k\user,
w2k2\user, nt4\user, nt42\user..
Since I started testing 3.08 and 3.09 (binaries from samba.org, sles 9
x86) I can no longer see any NT4 domains outside our local segment. (
NTlocal\user, w2k\user, w2k2\user) I can still see all of the W2K
domains we use for Exchangethose in the UK, Germany, and so forth.

Is there anything I might of missed in the release notes that would
explain this. I didn't see anything offhand that would of. I've tried
the different hosts variables within smb.conf :
ex. name resolve order = wins bcast hosts
and the local /etc/nsswitch.conf
ex. hosts:  files dns winbind wins

I have this in the smb.conf as well.
   wins server = ip_address_of_local_wins_server
   allow trusted domains = yes
   wins support = no

If I use the same config files but use 3.04, it workhum...

Thanks,
Adam


P.S. By the way, this last round of testing (if  I get though this
issue) will have our company state side replacing all the remaining
windows fileservers to linux. We'll be servering about 10TB worth of
disks via samba on large sata machines.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] smbd hung processes - Samba 3.0.7

2004-12-13 Thread john . debella
We're still experiencing this issue. I've observed a couple of things 
during the latest event.

I mentioned before that netstat -a shows many smb processes in CLOSE_WAIT 
state when this problem occurs. I happened to strace on a process that was 
stuck in recvfrom(1315,. When I killed this process many of the hung smb 
processes terminated and the Samba service was responding again.

I've noticed the following error in the messages file:

Dec 13 18:16:20 valhalla smbd[18005]: [2004/12/13 18:16:20, 0] 
tdb/tdbutil.c:tdb_log(725) 
Dec 13 18:16:20 valhalla smbd[18005]:   tdb(/var/cache/samba/locking.tdb): 
tdb_lock failed on list 99 ltype
=0 (Resource deadlock avoided) 

This particular error showed up prior to samba being restarted. When the 
service is restarted many of these show up in the log. I also notice that 
many times during an event the messages file contains the following 
errors:

Dec 13 19:29:33 valhalla smbd[28820]:   domain_client_validate: Domain 
password server not available. 
Dec 13 19:29:33 valhalla smbd[28820]: [2004/12/13 19:29:33, 0] 
auth/auth_domain.c:domain_client_validate(17
0)

Not sure if this is a coincidence.

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


Re: [Samba] print$ worked in 3.0.7, broken after upgrading to 3.0.9

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jeff Umbach wrote:
| Now WinXP Pro reports that the server does not have the
| correct drivers.  We can manually install the driver locally
| and printer, but now under printer status it says Access
| Denied.
Can you send me a raw network trace and a level 10 debug
log from the server?  Thanks.


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvmtqIR7qMdg1EfYRAvNiAJ9vaJKIO+oCvKOR7K7noD7CcQmuowCg8sWu
/S57NwIwGVqmJY/GLsb2xbA=
=0xU+
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] multiple loginscrips Samba 3

2004-12-13 Thread Paul Gienger
Adam Tauno Williams wrote:
googling arround, I found an example smb.conf containig
logon script = %m.bat
logon script = %U.bat
My question:
is it possible to have such a login script chain??
   

No.
A subsequent value read in the configuration overrides a previously read
value.
 

As an alternative to that very blunt no, there are ways to get the 
behavior you want. 

One can do several things to get sneaky in the login scripts, such as 
testing for group membership with the ifmember utility from MS.  Sorry I 
can't help on the syntax for that, but it has been posted to the list by 
several people who know how to use it better, alas I am no batch writing 
wizard.  We used this for a bit but then went to the next option since 
our group matching got kindof messy.

The way we get around this issue is to dynamically generate the .bat 
scripts with a server side script that checks for group membership and 
what not.  We put a call to the script with whatever args we want in the 
root preexec.  The sky is the limit to what you can do in there since 
you pass in and handle any args you like.  I believe I've posted the 
whole thing here before, so I won't do it again here.

Another option (I believe) is to use the Kixtart(sp?) package.  That's 
another search the archive answer as I have no exp. on that either.

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Speed of Samba through VPN

2004-12-13 Thread James Cooke
Hi there,
Recently, I successfully set up an RHEL3 server running Samba over a 
PPTP VPN connection, however, the client is complaining about access 
speeds. The problem is not so much opening the files, but browsing the 
folders - however, this only appears to be slow from the client end, not 
mine.

Today, we ran a quick test which compared the volume of traffic sent 
over the VPN connections to the central server from a client machine and 
from my test machine. We found that the volume of data being sent and 
received during the process of opening a shared folder, seeing the 
contents appear, then opening a subfolder and seeing its contents appear 
was approximately three times as much on the client machine as my test 
one. Does anyone know why it should be the case that smb is sending and 
receiving three times as much data to one machine using a share as another?

The test machines are both running Win2K SP4, have exactly the same VPN 
connection settings and offline file settings (turned off for this 
resource). The machines are at different locations using different 
connection technologies to reach the internet - could this be effecting 
the volume of traffic sent and received by smb?

I have followed some of the discussion regarding the use of Samba 
through a VPN connection and from the posts earlier this month, I can 
see that Apache and Davenport look like better long term solutions, 
however, we won't be able to implement these until the new year - so 
help on a short term solution would be really appreciated.

All the best,
James
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] RE: NFS mount problem

2004-12-13 Thread ALLEN, David
We have also discovered that Samba sessions are disconnecting even though
the user is not accessing the NFS mounted directory. This is resulting in
lots of dormant samba processes, and Outlook etc complaining that another
machine has the file locked.

When the NFS directory is removed, the dormant processes disappeared.

David

 -Original Message-
 From: ALLEN, David 
 Sent: 13 December 2004 10:47
 To:   '[EMAIL PROTECTED]'
 Subject:  NFS mount problem
 
 Hi,
 
 We have a major problem using Samba to access NFS mounted directories. The
 directory in question is on a Snap server running OS 3, and Samba is
 running on a new Sun V250 running Solaris 9; the NFS directory is mounted
 using udp.
 
 The problems occur when trying to load a file, which causes the samba
 process to crash. Another process starts automatically, crashes and so
 forth.
 
 However, the exact same configuration, NFS mount, Samba version etc works
 fine on an old Sun Utlra 10, also running Solaris 9! Also, everything
 works fine at the Unix level on both machines.
 
 All oplocks options are set on in smb.conf, and a copys of the log file
 when I try to open the file are included below, with log level set at 2
 and 3.
 
 Thanks in advance.
 
 David
 
 Log level 3:
 
 
 UNIX uid 15001 is UNIX user shpguest, and will be vuid 102
 [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
   Transaction 1372 of length 86
 [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
   switch message SMBtconX (pid 28589) conn 0x0
 [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(472)
   Connect path is '/tmp' for service [IPC$]
 [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
 [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
   se_access_check: user sid is
 S-1-5-21-1460809338-1000444070-3279871270-501
   se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
   se_access_check: also S-1-1-0
   se_access_check: also S-1-5-2
   se_access_check: also S-1-5-32-546
   se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
 [2004/12/13 10:33:55, 3] smbd/vfs.c:vfs_init_default(203)
   Initialising default vfs hooks
 [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
 [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
   se_access_check: user sid is
 S-1-5-21-1460809338-1000444070-3279871270-501
   se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
   se_access_check: also S-1-1-0
   se_access_check: also S-1-5-2
   se_access_check: also S-1-5-32-546
   se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
 [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (15001, 2213) - sec_ctx_stack_ndx = 0
 [2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(648)
   duk652-008167 (6.52.14.33) connect to service IPC$ initially as user
 shpguest
 (uid=15001, gid=2213) (pid 28589)
 [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2004/12/13 10:33:55, 3] smbd/reply.c:reply_tcon_and_X(456)
   tconX service=IPC$
 [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
   Transaction 1373 of length 90
 [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
   switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
 [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (305, 2200) - sec_ctx_stack_ndx = 0
 [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
   unix_mode(.) returning 0664
 [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
   error string = Is a directory
 [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
   error packet at smbd/nttrans.c(867) cmd=162 (SMBntcreateX)
 NT_STATUS_FILE_IS_A
 _DIRECTORY
 [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
   Transaction 1374 of length 152
 [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
   switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
 [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
   unix_mode(do/publications/temp/Thumbs.db) returning 0664
 [2004/12/13 10:33:55, 3] smbd/open.c:open_file(178)
   Error opening file do/publications/temp/Thumbs.db (No such file or
 directory)
 (local_flags=0) (flags=0)
 [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
   error string = No such file or directory
 [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
   error packet at smbd/trans2.c(2240) cmd=162 (SMBntcreateX)
 NT_STATUS_OBJECT_NA
 ME_NOT_FOUND
 [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
   Transaction 1375 of length 152
 [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
   switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
 [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
   unix_mode(do/publications/temp/Thumbs.db) returning 0664
 [2004/12/13 10:33:55, 

Re: [Samba] Speed of Samba through VPN

2004-12-13 Thread Adam Tauno Williams
 Today, we ran a quick test which compared the volume of traffic sent 
 over the VPN connections to the central server from a client machine and 
 from my test machine. We found that the volume of data being sent and 
 received during the process of opening a shared folder, seeing the 
 contents appear, then opening a subfolder and seeing its contents appear 
 was approximately three times as much on the client machine as my test 
 one. Does anyone know why it should be the case that smb is sending and 
 receiving three times as much data to one machine using a share as another?

Are you talking about raw packet count, packet size, or just content?
If either of the former, yes, the count and total transaction size will
be larger.  Your VPN connection is probably using a much smaller MRU/MTU
than your LAN,  resulting in more overhead (packet headers, etc..)

 The test machines are both running Win2K SP4, have exactly the same VPN 
 connection settings and offline file settings (turned off for this 
 resource). The machines are at different locations using different 
 connection technologies to reach the internet - could this be effecting 
 the volume of traffic sent and received by smb?

Yes, check the MRU/MTU.

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


Re: [Samba] Winbind separator char causing make_server_info_from_pw failed errors

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] wrote:
| In 3.0.8, users connections would have the domain
| and separator char for spnego kerberos replies and
| if the separator is something other than
| the default of \, it will cause errors like this:
I don't think this is correct.  Your statement about the
winbind separator.  If you can prove to me that it was
the separator character causing your problems, then we'll
fix it.  I think that you likely had some other configuration
error.
I'll gladly change my mind if you help me find such a bug
in our code.


cheers, jerry
|
| [2004/12/13 17:44:21, 1] smbd/service.c:make_connection_snum(648)
|   192.168.171.131 (192.168.171.131) connect to service debian-mirror
initially as user VIASAT-emalkowski (uid=10356, gid=1) (pid 11519)
| [2004/12/13 17:44:22, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
|   make_server_info_from_pw failed!
| [2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
|   make_server_info_from_pw failed!
| [2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
|   make_server_info_from_pw failed!
| [2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
|   make_server_info_from_pw failed!
| [2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
|   make_server_info_from_pw failed!
|
|
| It seems the VIASAT-emalkowski is confusing windows -- it would rather see
| VIASAT\emalkowski.
|
| Anyway -- I simply removed my winbind separator char override from
smb.conf
| as I use winbind use default domain = yes anyway making the separator
| setting a relic from the days I had DOMAIN-usernames in the pw entries
winbind
| provided.
|
| Perhaps a note in the documentation might be a good idea to warn the user
| about changing the winbind separator char from \ and how it could cause
| errors like above since the separator is affecting what gets sent back
| as the username to a windows domain controller and anything other than \
| will seems to cause havoc.
|
| Hope this post will help anyone having similar problems ... this one
| didn't seem too obvious to me until I noticed the DOMAIN-username in
the logs
| on 3.0.8, but only username in the logs on 3.0.2.  Once DOMAIN\username
| was in the logs, all was well.
|
| -Eric Malkowski
- --
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvmsGIR7qMdg1EfYRAmZPAKDBhVZYU6p2MozFMwyeZt3AzlFmfwCgipY0
Xvvk9YkC8m2t1X5+Prla7Q0=
=+kdA
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Authentification problem with SAMBA 3.0.7

2004-12-13 Thread Rainer Hantsch
Hello!

Meanwhile I could find out where the problem is, but I need help for fixing.

While Linux machines have no problem with mounting a SAMBA 3.0.7 server with
every possible username (existing on the samba server), I always get the
following error when I try to do that from a windows-client.

[2004/12/14 15:21:52, 0] auth/pampass.c:smb_pam_passcheck(810)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User wewerka !


The samba server is configured to use no password encryption, and the windows
machines have the correct entry for enabling plaintext passwords in their
registry. Also, there is no domain controller configured, the network is a
trivial workgroup.

That the Windows-Machines are working correctly is assured, because they can
connect to the second SAMBA server, running samba 2.0.6, also using no
password encryption.


If somebody could help me getting the authentification running, please.
Security is absolutely not required.


mfg

  Rainer Hantsch

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


[Samba] NFS mount problem

2004-12-13 Thread ALLEN, David
Hi,

We have a major problem using Samba to access NFS mounted directories. The
directory in question is on a Snap server running OS 3, and Samba is running
on a new Sun V250 running Solaris 9; the NFS directory is mounted using udp.

The problems occur when trying to load a file, which causes the samba
process to crash. Another process starts automatically, crashes and so
forth.

However, the exact same configuration, NFS mount, Samba version etc works
fine on an old Sun Utlra 10, also running Solaris 9! Also, everything works
fine at the Unix level on both machines.

All oplocks options are set on in smb.conf, and a copys of the log file when
I try to open the file are included below, with log level set at 2 and 3.

Thanks in advance.

David

Log level 3:


UNIX uid 15001 is UNIX user shpguest, and will be vuid 102
[2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
  Transaction 1372 of length 86
[2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
  switch message SMBtconX (pid 28589) conn 0x0
[2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(472)
  Connect path is '/tmp' for service [IPC$]
[2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
[2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-1460809338-1000444070-3279871270-501
  se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-32-546
  se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
[2004/12/13 10:33:55, 3] smbd/vfs.c:vfs_init_default(203)
  Initialising default vfs hooks
[2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
[2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-1460809338-1000444070-3279871270-501
  se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-32-546
  se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
[2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (15001, 2213) - sec_ctx_stack_ndx = 0
[2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(648)
  duk652-008167 (6.52.14.33) connect to service IPC$ initially as user
shpguest
(uid=15001, gid=2213) (pid 28589)
[2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/12/13 10:33:55, 3] smbd/reply.c:reply_tcon_and_X(456)
  tconX service=IPC$
[2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
  Transaction 1373 of length 90
[2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
  switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
[2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (305, 2200) - sec_ctx_stack_ndx = 0
[2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(.) returning 0664
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
  error string = Is a directory
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
  error packet at smbd/nttrans.c(867) cmd=162 (SMBntcreateX)
NT_STATUS_FILE_IS_A
_DIRECTORY
[2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
  Transaction 1374 of length 152
[2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
  switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
[2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(do/publications/temp/Thumbs.db) returning 0664
[2004/12/13 10:33:55, 3] smbd/open.c:open_file(178)
  Error opening file do/publications/temp/Thumbs.db (No such file or
directory)
(local_flags=0) (flags=0)
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
  error string = No such file or directory
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
  error packet at smbd/trans2.c(2240) cmd=162 (SMBntcreateX)
NT_STATUS_OBJECT_NA
ME_NOT_FOUND
[2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
  Transaction 1375 of length 152
[2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
  switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
[2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(do/publications/temp/Thumbs.db) returning 0664
[2004/12/13 10:33:55, 3] smbd/open.c:open_file(178)
  Error opening file do/publications/temp/Thumbs.db (No such file or
directory)
(local_flags=0) (flags=0)
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
  error string = No such file or directory
[2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
  error packet at smbd/trans2.c(2240) cmd=162 (SMBntcreateX)
NT_STATUS_OBJECT_NA
ME_NOT_FOUND
[2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
  Transaction 1376 of length 158
[2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
  switch message SMBntcreateX (pid 

Re: [Samba] what samba can't do list

2004-12-13 Thread Adam Tauno Williams
 I was wondering what of this was still true?
 quote
 Things that samba cannot yet, but are under rapid development, are: 
 - Trust relationships with other domains.

?  Trust accounts have existed for quite some time.

 - PDC and BDC integration. 

Depends on what you mean; technically, no.  Very comfortable work arounds
exist.

 - Windows NT ACLs (on the Samba shares).

This has definitely been working for a long time. 

 - Offer a list of domain users to User Manager for Domains (or the 
   Security Tab etc). 

Been working pretty well for us since the advent of 3.0.x

 At the moment Samba behaves as an NT domain controller, not as a Windows 
 2000 server. This isn't likely to change much in the future. 

YES

 from:
 http://www.physics.gla.ac.uk/itsig/reports/samba_pdc_2001-11-19.html

Dude!  Why don't you try checking out http://www.samba.org  rather than a very
old obscure document.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Group permissions not working on 3.0.8

2004-12-13 Thread Paul Gienger

I believe group permissions are not working well on Samba 3.0.8.
What are the rest of the vitals on your system?  OS would be the next 
most helpful thing.

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Odd LPQ behavior in 3.0.x

2004-12-13 Thread Ryan Novosielski
On Fri, 10 Dec 2004, Gerald (Jerry) Carter wrote:
Ryan Novosielski wrote:
| I changed the 'lpq cache time' parameter to 5
| (from the default) and the  problem seems to
| have gone away. The status (Paused/Printing,
| or nothing  for jobs that are queued) has
| returned. However, now the Pages are all
| N/A (as it was before I upgraded), and the size
| field is back (but static). The port field is blank...
All of those fields are filling in via change notify
messages.  Please note that MS has broken this
functionality with XP sp2 (even in a Windows network).
I don't know of any hotfix that addresses it yet.
Ah! That may be the cause of it then -- my desktop is running XP SP2. If 
anyone DOES have any information on this, please send it along.

Also be aware that setting 'lpq cache = 5' will cause
high loads (and without the patch I mentioned possibly
large memory consumption caused by excessive amounts of
print_queue_update() calls.
OK, I will look more carefully at this value.
| Before changing this parameter, as I noted below,
| Status was missing,  but pages was listed (and dynamic)
| as was size (same). Now I only get  this on incoming
| jobs (jobs with a Spooling status). I'm curious if
| there is any good documentation on how to expect this
| to work... the printing stuff doesn't cover this
| particular part of it too much.
Nope.  It's all way to complicated IMO.  Right now we
batch up the print change notify messages before sending
to the client.  We also consolidate things like the
page count and size messages so that we send one per
printer per batch.
I have another question related to this. My NT admin appears to have 
disabled the channel that allows back-communication to the PC's -- does 
anyone know off the top of their head what setting/service on NT enables 
that so that I can try it out and ask him to re-enable it if it is 
helpful?

| I will apply the patch and let you know -- Samba
| has been segfaulting  somewhat too on 3.0.9, so I'm
| hoping this will cure that as well.
I'm pretty sure it will.
Thanks for your efforts!
 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] failed to join PDC

2004-12-13 Thread eric
When I try to join a Samba 3.0.8 to a Win 2000 server it complains:
Administrator's password: 
[1901/12/26 12:25:31, 0] libads/kerberos.c:ads_kinit_password(146)
 kerberos_kinit_password [EMAIL PROTECTED] failed: Cannot resolve network address for KDC in requested realm
[1901/12/26 12:25:31, 0] utils/net_ads.c:ads_startup(186)
 ads_connect: Cannot resolve network address for KDC in requested realm
[1901/12/26 12:25:31, 0] rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
 cli_nt_setup_creds: request challenge failed
[1901/12/26 12:25:31, 0] rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
 cli_nt_setup_creds: request challenge failed
[1901/12/26 12:25:31, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(319)
 Error domain join verification (reused connection): NT_STATUS_INVALID_COMPUTER_NAME
 
Unable to join domain HUFSD.

I don't care if I join the HUFSD domain with my Samba server ...but I would 
like to only have to add a user once.
I have sycronization turned on while using webmin which means I don't have to 
create a user twice for unix and samba,
but the Win 2000 server is in charge of the domain and then complains the the 
user cannot logon to the domain because
I haven't added the user to the Win 2000 server?  I do not understand.
If my Samba server has to join the HUFSD domain, how do I tell the Samba server 
about kerberos ...and then do I still have to add users twice?


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


[Samba] Re: what samba can't do list

2004-12-13 Thread Norman Zhang
Adam Tauno Williams wrote:
- Windows NT ACLs (on the Samba shares).
This has definitely been working for a long time. 
I thought it is POSIX ACL mapping. I still use that.
Regards,
Norman Zhang
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] TDB Files From Mono/C#

2004-12-13 Thread Jeremy Allison
On Mon, Dec 13, 2004 at 02:25:28PM -0500, Adam Tauno Williams wrote:
 Does anyone have any code for inspecting Samba TDB files from Mono or
 just in C#?  Is the format of the TDB file documented somewhere?

Only in the source code I'm afraid. The tdb C code would convert to
Java or C# quite easily, although I'm thinking the locking semantics
and mmap specific parts may cause some issues.

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


[Samba] Solaris: Linking bin/smbd, /usr/ccs/bin/ld: illegal option -- E

2004-12-13 Thread Gordon Thagard
Solaris 9
Samba 3.0.9
gcc 3.3.2 (from SunFreeware)
config opts: ./configure --prefix=/opt/samba
Hello,
I'm having some trouble compiling the latest samba. Even using 
--with-gnu-ld as a configuration switch it still wants to use the 
Solaris-native ld. Of course, the gcc from SunFreeware says as much:

It was compiled to use the SUN assembler and loader usually in 
/usr/ccs/bin if the SUNW developer packages are installed.

BTW, it was a standard install which means that the SUNW developer 
packages *are* installed. And I'll need that stuff to compile perl 
modules later. Being that I'm a Sysadmin and not a Coder, does anyone 
have any insights? A google search only pointed to that fact that this 
problem exists. There was no working solution I could find.

Here's the error message again:
Compiling smbd/server.c
Linking bin/smbd
/usr/ccs/bin/ld: illegal option -- E
usage: ld [-6:abc:d:e...
...
Thank you to any and all who may be of assistance.
Cheers,

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


Re: [Samba] Solaris: Linking bin/smbd, /usr/ccs/bin/ld: illegal option -- E

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gordon Thagard wrote:
| Solaris 9
| Samba 3.0.9
| gcc 3.3.2 (from SunFreeware)
| config opts: ./configure --prefix=/opt/samba
...
| Compiling smbd/server.c
| Linking bin/smbd
| /usr/ccs/bin/ld: illegal option -- E
| usage: ld [-6:abc:d:e...
Use GNU ld is my suggestion.  I don't link the SUn linker.
I just rename /usr/ccs/bin/ld to something else


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvfXEIR7qMdg1EfYRAp4TAJ99iIm0QDEew4mLOObAlL2xxHMOGQCgwGx7
OMThFi6kjTK/+RNUkbJeIF0=
=GvNh
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Solaris: Linking bin/smbd, /usr/ccs/bin/ld: illegal option -- E

2004-12-13 Thread Gordon Thagard
Well fancy that -  It worked!
# mv /usr/ccs/bin/ld /usr/ccs/bin/ld.sun
# ./configure
# make
# make install
# mv /usr/ccs/bin/ld.sun /usr/ccs/bin/ld
Much thanks!
Gerald (Jerry) Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gordon Thagard wrote:
| Solaris 9
| Samba 3.0.9
| gcc 3.3.2 (from SunFreeware)
| config opts: ./configure --prefix=/opt/samba
...
| Compiling smbd/server.c
| Linking bin/smbd
| /usr/ccs/bin/ld: illegal option -- E
| usage: ld [-6:abc:d:e...
Use GNU ld is my suggestion.  I don't link the SUn linker.
I just rename /usr/ccs/bin/ld to something else


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvfXEIR7qMdg1EfYRAp4TAJ99iIm0QDEew4mLOObAlL2xxHMOGQCgwGx7
OMThFi6kjTK/+RNUkbJeIF0=
=GvNh
-END PGP SIGNATURE-
--
Gordon Thagard, UNIX Systems Administrator
FAMU-FSU College of Engineering
Communications  Multimedia Services
2525 Pottsdammer Street Suite A332-L
Tallahassee, FL 32310-6046
V: (850) 410-6449
F: (850) 410-6484
M: (850) 443-4220
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba4 configure error

2004-12-13 Thread Poornaprajna Udupi
I am trying to compile samba 4 with solaris 10 on a x86 machine. I get 
the checking configure summary... configure: error: summary failure. 
Aborting config failure. I am using gcc 3.4.3

Here is how it goes:
cowabunga: /export/home/test/samba4/source$ ./autogen.sh ./autogen.sh: 
running script/mkversion.sh
./script/mkversion.sh: svn: not found
./script/mkversion.sh: svn: not found
./script/mkversion.sh: svk: not found
./script/mkversion.sh: svk: not found
./script/mkversion.sh: 'include/version.h' created for 
Samba(3.9.0-SVN-build-UNKNOWN)
./autogen.sh: running autoheader
autoheader: `include/config.h.in' is unchanged
./autogen.sh: running autoconf
Now run ./configure and then make.

Please see the attached file for the output from running ./configure. 
Any help is greatly appreciated.

Thanks
poorna


SAMBA VERSION: 3.9.0-SVN-build-UNKNOWN
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking config.cache system type... same
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler can precompile header files... yes
checking that the C compiler understands volatile... yes
checking for immediate structures... yes
checking for test routines... yes
checking for ld... /ws/amd64-gate/public/tools/gcc-3.4.3/bin/ld
checking if the linker (/ws/amd64-gate/public/tools/gcc-3.4.3/bin/ld) is GNU 
ld... yes
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdbool.h usability... no
checking stdbool.h presence... no
checking for stdbool.h... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for _Bool... yes
checking for uint_t... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for uint64_t... yes
no large file support
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking sys/id.h usability... no
checking sys/id.h presence... no
checking for sys/id.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking compat.h usability... no
checking compat.h presence... no
checking for compat.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for sys/wait.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mode.h usability... yes
checking sys/mode.h presence... yes

Re: [Samba] tdbsam and variables

2004-12-13 Thread John H Terpstra
On Monday 13 December 2004 15:31, Marc Petitmermet wrote:
  | First question: When Home Directory is not set in tdbsam
  | does samba  just use the setting of logon home in smb.conf?
  | And when it's set does  it ignore the smb.conf setting?
 
  You actually can't exlude these settings from the
  tdbsam records IIRC.  I'd have to go back and look again
  to be sure.  So the home directory path in the tdb record
  would always take precedence over the smb.conf settings.
  But like I say, I would have to double check this in the code.

 I would be really glad if you could check this. If what you say is true
 than the example Big 500 Users Example makes just no sense to me. The

Not quite! The smb.conf setting is used in creating the user account entry in 
tdbsam.

 example only uses a tdbsam backend and then the setting for logon home
 and logon path could just be removed because it's the  tdbsam which
 counts. And when we cannot use variables in tdbsam I begin to wonder
 what the advantages of a tdbsam backend against a smbpasswd file should
 be. Is this somewhere documented which backend supports variables and
 which backend supports the settings in smb.conf and since which version
 of samba? Thanks, Jerry.

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO  Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] compiling problem with ldap support

2004-12-13 Thread Adi Nugraha
hi,

I'm trying to compile samba with ldap support, which is supposed to be a
default in the 3.0.9 package, but i got an error msessage when i tried make,
something like this :

Compiling dynconfig.c
Compiling smbd/vfs.c
Compiling passdb/pdb_interface.c
Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c: In function `ldapsam_delete_entry':
passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
passdb/pdb_ldap.c:1846: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
passdb/pdb_ldap.c:2870: incompatible types in assignment
passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
passdb/pdb_ldap.c:2956: incompatible types in assignment
make: *** [passdb/pdb_ldap.o] Error 1
[EMAIL PROTECTED] source]# Compiling dynconfig.c
-bash: Compiling: command not found
[EMAIL PROTECTED] source]# Compiling smbd/vfs.c
-bash: Compiling: command not found
[EMAIL PROTECTED] source]# Compiling passdb/pdb_interface.c
-bash: Compiling: command not found
[EMAIL PROTECTED] source]# Compiling passdb/pdb_ldap.c
-bash: Compiling: command not found
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
`ldapsam_delete_entry':
 passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
without a cast
 passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
 passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
without a cast
 passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
-bash: passdb/pdb_ldap.c:: No such file or directory
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c:1846: warning: assignment makes
pointer from integer without a cast
-bash: passdb/pdb_ldap.c:1846:: No such file or directory
passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
without a cast
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c:1894: warning: assignment makes
pointer from integer without a cast
passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
-bash: passdb/pdb_ldap.c:1894:: No such file or directory
passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
without a cast
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
`ldapsam_add_group_mapping_entry':
 passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
without a cast
 passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
 passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
without a cast
 passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
without a cast
passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
-bash: passdb/pdb_ldap.c:: No such file or directory
passdb/pdb_ldap.c:2870: incompatible types in assignment
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c:2609: warning: assignment makes
pointer from integer without a cast
passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
-bash: passdb/pdb_ldap.c:2609:: No such file or directory
passdb/pdb_ldap.c:2956: incompatible types in assignment
[EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
`pdb_init_ldapsam_common':
 passdb/pdb_ldap.c:2870: incompatible types in assignment
 passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
 passdb/pdb_ldap.c:2956: incompatible types in assignment
 make: *** [passdb/pdb_ldap.o] Error 1

can anyone help me with this.

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


[Samba] print$ worked in 3.0.7, broken after upgrading to 3.0.9

2004-12-13 Thread Jeff Umbach
Using Samba 3.0.7 on RedHat Enterprise Linux 3, we were using the 
printer$ share to store printer drivers on the server for auto-download. 
 It was working perfectly until we had upgraded to 3.0.9 and had to 
reinstall some printers on a computer.  Now WinXP Pro reports that the 
server does not have the correct drivers.  We can manually install the 
driver locally and printer, but now under printer status it says Access 
Denied.

Here is the printers portion of my TESTPARM readout.
[QKITCHEN]
comment = Kitchen Expediter Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
printable = Yes
printer name = QKITCHEN
[QBAR1]
comment = First Bar Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QBAR1
[QBAR2]
comment = Second Bar Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QBAR2
[QBAR3]
comment = Third Bar Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QBAR3
[QPIZZA]
comment = Pizza Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QPIZZA
[QCOLD]
comment = Cold Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QCOLD
[QHOT]
comment = Hot Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QHOT
[QSAUTEE]
comment = Sautee Printer
path = /var/spool/samba
valid users = root, @smbadmins, @pos, @printeradmins
max connections = 40
printable = Yes
printer name = QSAUTEE
[QCOLOR]
comment = Office Color Laser Printer (Postscript Driver)
path = /var/spool/samba
valid users = root, @smbadmins, @office, @printeradmins
max connections = 10
printable = Yes
printer name = QCOLOR
[QCOLOR-PCL]
comment = Office Color Laser Printer (PCL Driver)
path = /var/spool/samba
valid users = root, @smbadmins, @office, @printeradmins
max connections = 10
printable = Yes
printer name = QCOLOR-PCL
[QTICKET]
comment = Office Ticket Printer
path = /var/spool/samba
valid users = root, @smbadmins, @office, @printeradmins
max connections = 40
printable = Yes
printer name = QTICKET
[print$]
comment = Printer Drivers Directory
path = /usr/local/samba/printers
valid users = root, @smbadmins, @smbusers, @printeradmins
write list = @smbadmins, root
read only = No
max connections = 40
csc policy = disable
Hopefully this can be resolved quickly or I will have to roll back to 
Samba 3.0.7, which was working just fine.

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


[Samba] Winbind separator char causing make_server_info_from_pw failed errors

2004-12-13 Thread malk
Hi all-

In migrating from 3.0.2 to 3.0.8 on a box that's an ADS domain member, I
had a relic line in smb.conf like this:

   winbind separator char = -

With 3.0.2, users connecting wouldn't have a domain and separator char
component, so spnego kerberos replies to the 2003 domain controller
would be fine.

In 3.0.8, users connections would have the domain and separator char
for spnego kerberos replies and if the separator is something other than
the default of \, it will cause errors like this:

[2004/12/13 17:44:21, 1] smbd/service.c:make_connection_snum(648)
  192.168.171.131 (192.168.171.131) connect to service debian-mirror initially 
as user VIASAT-emalkowski (uid=10356, gid=1) (pid 11519)
[2004/12/13 17:44:22, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
  make_server_info_from_pw failed!
[2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
  make_server_info_from_pw failed!
[2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
  make_server_info_from_pw failed!
[2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
  make_server_info_from_pw failed!
[2004/12/13 17:44:24, 1] smbd/sesssetup.c:reply_spnego_kerberos(265)
  make_server_info_from_pw failed!


It seems the VIASAT-emalkowski is confusing windows -- it would rather see
VIASAT\emalkowski.

Anyway -- I simply removed my winbind separator char override from smb.conf
as I use winbind use default domain = yes anyway making the separator
setting a relic from the days I had DOMAIN-usernames in the pw entries winbind
provided.

Perhaps a note in the documentation might be a good idea to warn the user
about changing the winbind separator char from \ and how it could cause
errors like above since the separator is affecting what gets sent back
as the username to a windows domain controller and anything other than \
will seems to cause havoc.

Hope this post will help anyone having similar problems ... this one
didn't seem too obvious to me until I noticed the DOMAIN-username in the logs
on 3.0.8, but only username in the logs on 3.0.2.  Once DOMAIN\username
was in the logs, all was well.

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


[Samba] Vampire deletes user from groups

2004-12-13 Thread Geoff Scott
I've seen this question before but no answer.  Can anyone explain why when
you vampire accounts off the nt server, it will, for some people, create
users and groups just fine and then go and delete users from every single
group?

Regards Geoff Scott

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


Re: [Samba] compiling problem with ldap support

2004-12-13 Thread Adi Nugraha
- Original Message -
From: Adi Nugraha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 9:29 AM
Subject: [Samba] compiling problem with ldap support


 hi,

 I'm trying to compile samba with ldap support, which is supposed to be a
 default in the 3.0.9 package, but i got an error msessage when i tried
make,
 something like this :

 Compiling dynconfig.c
 Compiling smbd/vfs.c
 Compiling passdb/pdb_interface.c
 Compiling passdb/pdb_ldap.c
 passdb/pdb_ldap.c: In function `ldapsam_delete_entry':
 passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
 passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
 passdb/pdb_ldap.c:1846: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
 passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
 passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
 passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
 passdb/pdb_ldap.c:2870: incompatible types in assignment
 passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
 passdb/pdb_ldap.c:2956: incompatible types in assignment
 make: *** [passdb/pdb_ldap.o] Error 1
 [EMAIL PROTECTED] source]# Compiling dynconfig.c
 -bash: Compiling: command not found
 [EMAIL PROTECTED] source]# Compiling smbd/vfs.c
 -bash: Compiling: command not found
 [EMAIL PROTECTED] source]# Compiling passdb/pdb_interface.c
 -bash: Compiling: command not found
 [EMAIL PROTECTED] source]# Compiling passdb/pdb_ldap.c
 -bash: Compiling: command not found
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
 `ldapsam_delete_entry':
  passdb/pdb_ldap.c:295: warning: assignment makes pointer from integer
 without a cast
  passdb/pdb_ldap.c: In function `ldapsam_update_sam_account':
  passdb/pdb_ldap.c:1699: warning: assignment makes pointer from integer
 without a cast
  passdb/pdb_ldap.c: In function `ldapsam_add_sam_account':
 -bash: command substitution: line 1: unexpected EOF while looking for
 matching `''
 -bash: command substitution: line 4: syntax error: unexpected end of file
 -bash: passdb/pdb_ldap.c:: No such file or directory
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c:1846: warning: assignment makes
 pointer from integer without a cast
 -bash: passdb/pdb_ldap.c:1846:: No such file or directory
 passdb/pdb_ldap.c:1894: warning: assignment makes pointer from integer
 without a cast
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c:1894: warning: assignment makes
 pointer from integer without a cast
 passdb/pdb_ldap.c: In function `ldapsam_add_group_mapping_entry':
 -bash: passdb/pdb_ldap.c:1894:: No such file or directory
 passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
 without a cast
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
 `ldapsam_add_group_mapping_entry':
  passdb/pdb_ldap.c:2297: warning: assignment makes pointer from integer
 without a cast
  passdb/pdb_ldap.c: In function `ldapsam_update_group_mapping_entry':
  passdb/pdb_ldap.c:2382: warning: assignment makes pointer from integer
 without a cast
  passdb/pdb_ldap.c: In function `ldapsam_modify_aliasmem':
 -bash: command substitution: line 1: unexpected EOF while looking for
 matching `''
 -bash: command substitution: line 4: syntax error: unexpected end of file
 passdb/pdb_ldap.c:2609: warning: assignment makes pointer from integer
 without a cast
 passdb/pdb_ldap.c: In function `pdb_init_ldapsam_common':
 -bash: passdb/pdb_ldap.c:: No such file or directory
 passdb/pdb_ldap.c:2870: incompatible types in assignment
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c:2609: warning: assignment makes
 pointer from integer without a cast
 passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
 -bash: passdb/pdb_ldap.c:2609:: No such file or directory
 passdb/pdb_ldap.c:2956: incompatible types in assignment
 [EMAIL PROTECTED] source]# passdb/pdb_ldap.c: In function
 `pdb_init_ldapsam_common':
  passdb/pdb_ldap.c:2870: incompatible types in assignment
  passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
  passdb/pdb_ldap.c:2956: incompatible types in assignment
  make: *** [passdb/pdb_ldap.o] Error 1
 
 can anyone help me with this.
additional info, I was able to compile it before installing OpenLDAP(I
wasn't intending on using LDAP backend at first), which one should be
installed first Open LDAP or Samba ? I checked previous threads, but it was
for a solaris 9, i'm using  mandrake linux 9.1,


thanks


-- 

[Samba] Samba 3.0.9 + Windows SP2

2004-12-13 Thread Yavor Atanasov
Hi,
I have problem with Samba 3.0.9 (Version 3.0.9-Debian).
After start or restart I can seel computers (Windows XP stations).
After a half hour all Windows XP with SP2 are going invisible. It
possible to connect them by \\computer_name, but to unhide you
must restart Samba.
[global]
  panic action = /usr/share/samba/panic-action %d
  workgroup = worgroup_name
  server string = %h server (Samba %v)
  invalid users = root
  log file = /var/log/samba/log.%m
  max log size = 1000
  syslog = 100
  encrypt passwords = true
  passdb backend = smbpasswd guest
  socket options = TCP_NODELAY
  local master = yes
  os level = 255
  domain master = yes
  preferred master = yes
  wins support = yes
  dns proxy = yes
  name resolve order = wins lmhosts host bcast
  passwd program = /usr/bin/passwd %u
  passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .
  obey pam restrictions = yes

Help please :)
Yavor Atanasov
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Unable to save files to share

2004-12-13 Thread Des Dougan
Following the recent trans2 exploit announcement, SuSE released kernel
2.6.5-7.111.5 to deal with it. I've installed the kernel upgrade on my
desktop (SuSE 9.1, Samba 3.0.4). However, with this kernel, when I try
to save to a share on my server (Samba 2.2.8), I get this set of error
messages:

Dec 13 22:10:25 p133 kernel: smb_trans2: invalid data, disp=0, cnt=0, tot=0, 
ofs=0
Dec 13 22:10:55 p133 kernel: smb_add_request: request [d87c4e80, mid=388] timed 
out!
Dec 13 22:10:57 p133 kernel: smb_trans2: invalid data, disp=0, cnt=0, tot=0, 
ofs=0
Dec 13 22:11:27 p133 kernel: smb_add_request: request [d87c4e80, mid=399] timed 
out!

Reverting the kernel back to the previous version is a temporary
workaround; however, I'm looking for a resolution, and would appreciate
any assistance.

Thanks,

-- 

Des Dougan, Principal
Dougan Consulting Group

Ph: 604-980-2848   Email: des at DouganConsulting dot com 

www.DouganConsulting.com

Design - Implementation - Support

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


[Samba] User sessions opens and closses very quickly

2004-12-13 Thread Jürgen Voss
Hello Vijai,

Have you been able to solve this problem.
After the upgrade to samba version 3.0.7 we have seen the same behaviour.
User sessions opens and closes immediately afterwards.
Any help appreciated.

Jürgen



Suva
Informatik IFS/ZS

Jürgen Voss

Suva
Rösslimattstrasse 39
Postfach 4358
CH-6002 Luzern
Phone:+41 (0)41 419 5150
Fax:+41 (0)41 419 6211
Mailto:[EMAIL PROTECTED]
http://www.suva.ch


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


all posts are now moderated

2004-12-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
To all list subscribers:
This list now requires that all posts be approved by a moderator
including those appearing to come from a [EMAIL PROTECTED] address.
This will prevent situations such as occurred yesterday when an email
worm forged a samba.org address (my own) and bounces began
filtering back through the samba-announce list.
We apologize for the noise and have hopefully addressed the
issue to prevent a reoccurrence.

cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBvwG8IR7qMdg1EfYRAi+6AKDLklWmbKpWm1B+q9tNVNAPbN3pxwCeNUSd
isn1RccwMMCW/g/bLXxCB3U=
=uFJA
-END PGP SIGNATURE-


svn commit: samba r4171 - in branches/SAMBA_4_0/source/librpc/idl: .

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-13 09:32:57 + (Mon, 13 Dec 2004)
New Revision: 4171

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4171

Log:
an attempt at better IDL for DsReplicaSync

Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 09:32:02 UTC 
(rev 4170)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 09:32:57 UTC 
(rev 4171)
@@ -54,14 +54,15 @@
uint32 unknown1;
uint32 unknown2;
GUID guid1;
-   [size_is(28)] uint8 unknown3[28];
-   [flag(STR_LEN4|STR_CHARLEN)] string nc_dn;
+   uint8 unknown3[28];
+   [range(0,0xA0)] uint32 length;
+   [size_is(length+1)] uint16 nc_dn[*];
} drsuapi_DsReplicaSyncRequest1Info;
 
typedef struct {
drsuapi_DsReplicaSyncRequest1Info *info;
GUID guid1;
-   asclstr string1;
+   astring *string1;
uint32 unknown1;
} drsuapi_DsReplicaSyncRequest1;
 



svn commit: samba r4177 - in branches/SAMBA_4_0/source: include libcli/util

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 11:37:47 + (Mon, 13 Dec 2004)
New Revision: 4177

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4177

Log:
add some more error codes

metze

Modified:
   branches/SAMBA_4_0/source/include/doserr.h
   branches/SAMBA_4_0/source/libcli/util/doserr.c


Changeset:
Modified: branches/SAMBA_4_0/source/include/doserr.h
===
--- branches/SAMBA_4_0/source/include/doserr.h  2004-12-13 11:34:57 UTC (rev 
4176)
+++ branches/SAMBA_4_0/source/include/doserr.h  2004-12-13 11:37:47 UTC (rev 
4177)
@@ -239,10 +239,12 @@
 #define WERR_DS_SERVICE_UNAVAILABLE W_ERROR(0x200f)
 #define WERR_DS_NO_SUCH_OBJECT W_ERROR(0x2030)
 #define WERR_DS_OBJ_NOT_FOUND W_ERROR(0x208d)
+#define WERR_DS_DRA_BAD_DN W_ERROR(0x20f7)
+#define WERR_DS_DRA_BAD_NC W_ERROR(0x20f8)
 #define WERR_DS_DRA_DB_ERROR W_ERROR(0x2103)
+#define WERR_DS_DRA_NO_REPLICA W_ERROR(0x2104)
 #define WERR_DS_WRONG_LINKED_ATTRIBUTE_SYNTAX W_ERROR(0x2150)
 
-
 #define WERR_FOOBAR WERR_GENERAL_FAILURE
 
 #endif /* _DOSERR_H */

Modified: branches/SAMBA_4_0/source/libcli/util/doserr.c
===
--- branches/SAMBA_4_0/source/libcli/util/doserr.c  2004-12-13 11:34:57 UTC 
(rev 4176)
+++ branches/SAMBA_4_0/source/libcli/util/doserr.c  2004-12-13 11:37:47 UTC 
(rev 4177)
@@ -74,7 +74,10 @@
{ WERR_DS_SERVICE_UNAVAILABLE, WERR_DS_SERVICE_UNAVAILABLE },
{ WERR_DS_NO_SUCH_OBJECT, WERR_DS_NO_SUCH_OBJECT },
{ WERR_DS_OBJ_NOT_FOUND, WERR_DS_OBJ_NOT_FOUND },
+   { WERR_DS_DRA_BAD_DN, WERR_DS_DRA_BAD_DN },
+   { WERR_DS_DRA_BAD_NC, WERR_DS_DRA_BAD_NC },
{ WERR_DS_DRA_DB_ERROR, WERR_DS_DRA_DB_ERROR },
+   { WERR_DS_DRA_NO_REPLICA, WERR_DS_DRA_NO_REPLICA },
{ WERR_DS_WRONG_LINKED_ATTRIBUTE_SYNTAX, 
WERR_DS_WRONG_LINKED_ATTRIBUTE_SYNTAX },
{ WERR_GENERAL_FAILURE, WERR_GENERAL_FAILURE },
{ WERR_PRINTQ_FULL, WERR_PRINTQ_FULL },



svn commit: samba r4178 - in branches/SAMBA_4_0/source/librpc/idl: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 12:01:43 + (Mon, 13 Dec 2004)
New Revision: 4178

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4178

Log:
the level is mostly singed not unsigned

metze

Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 11:37:47 UTC 
(rev 4177)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 12:01:43 UTC 
(rev 4178)
@@ -71,7 +71,7 @@
 
WERROR drsuapi_DsReplicaSync(
[in,ref] policy_handle *bind_handle,
-   [in] uint32 level,
+   [in] int32 level,
[in,switch_is(level)] drsuapi_DsReplicaSyncRequest req
);
 



svn commit: samba r4179 - in branches/SAMBA_4_0/source/torture/rpc: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 12:24:57 + (Mon, 13 Dec 2004)
New Revision: 4179

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4179

Log:
- nicer code layout

- and disable DsReplicaSync by default it kill lsass.exe
  on my w2k box

metze

Modified:
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 12:01:43 UTC 
(rev 4178)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 12:24:57 UTC 
(rev 4179)
@@ -860,33 +860,23 @@
 
ZERO_STRUCT(priv);
 
-   if (!test_DsBind(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsBind(p, mem_ctx, priv);
 
-   if (!test_DsGetDCInfo(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsGetDCInfo(p, mem_ctx, priv);
 
-   if (!test_DsCrackNames(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsCrackNames(p, mem_ctx, priv);
 
-   if (!test_DsWriteAccountSpn(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsWriteAccountSpn(p, mem_ctx, priv);
 
-   if (!test_DsReplicaGetInfo(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsReplicaGetInfo(p, mem_ctx, priv);
 
-   if (!test_DsReplicaSync(p, mem_ctx, priv)) {
-   ret = False;
+   if (lp_parm_int(-1, torture, dangerous) == 1) {
+   ret = test_DsReplicaSync(p, mem_ctx, priv);
+   } else {
+   printf(DsReplicaSync disabled - enable dangerous tests to 
use\n);
}
 
-   if (!test_DsUnbind(p, mem_ctx, priv)) {
-   ret = False;
-   }
+   ret = test_DsUnbind(p, mem_ctx, priv);
 
talloc_destroy(mem_ctx);
 



svn commit: samba r4183 - in branches/SAMBA_4_0/source/torture/raw: .

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-13 23:58:39 + (Mon, 13 Dec 2004)
New Revision: 4183

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4183

Log:
expanded the RAW-MKDIR torture test to test creation of EA lists


Modified:
   branches/SAMBA_4_0/source/torture/raw/mkdir.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/mkdir.c
===
--- branches/SAMBA_4_0/source/torture/raw/mkdir.c   2004-12-13 23:57:59 UTC 
(rev 4182)
+++ branches/SAMBA_4_0/source/torture/raw/mkdir.c   2004-12-13 23:58:39 UTC 
(rev 4183)
@@ -20,6 +20,8 @@
 
 #include includes.h
 
+#define BASEDIR \\mkdirtest
+
 #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
printf((%s) Incorrect status %s - should be %s\n, \
@@ -35,13 +37,13 @@
 {
union smb_mkdir md;
struct smb_rmdir rd;
-   const char *path = \\test_mkdir.dir;
+   const char *path = BASEDIR \\mkdir.dir;
NTSTATUS status;
BOOL ret = True;
 
-   /* cleanup */
-   smbcli_rmdir(cli-tree, path);
-   smbcli_unlink(cli-tree, path);
+   if (!torture_setup_dir(cli, BASEDIR)) {
+   return False;
+   }
 
/* 
   basic mkdir
@@ -95,23 +97,43 @@
md.t2mkdir.in.path = path;
md.t2mkdir.in.num_eas = 0;  
status = smb_raw_mkdir(cli-tree, md);
-   CHECK_STATUS(status, NT_STATUS_UNSUCCESSFUL);
+   CHECK_STATUS(status, NT_STATUS_OK);
 
+   status = smb_raw_rmdir(cli-tree, rd);
+   CHECK_STATUS(status, NT_STATUS_OK);
+
printf(testing t2mkdir with EAs\n);
 
/* with EAs */
-   md.t2mkdir.in.num_eas = 1;
-   md.t2mkdir.in.eas = talloc_p(mem_ctx, struct ea_struct);
+   md.t2mkdir.level = RAW_MKDIR_T2MKDIR;
+   md.t2mkdir.in.path = path;
+   md.t2mkdir.in.num_eas = 3;
+   md.t2mkdir.in.eas = talloc_array_p(mem_ctx, struct ea_struct, 
md.t2mkdir.in.num_eas);
md.t2mkdir.in.eas[0].flags = 0;
md.t2mkdir.in.eas[0].name.s = EAONE;
-   md.t2mkdir.in.eas[0].value = data_blob_talloc(mem_ctx, 1, 1);
+   md.t2mkdir.in.eas[0].value = data_blob_talloc(mem_ctx, blah, 4);
+   md.t2mkdir.in.eas[1].flags = 0;
+   md.t2mkdir.in.eas[1].name.s = EA TWO;
+   md.t2mkdir.in.eas[1].value = data_blob_talloc(mem_ctx, foo bar, 7);
+   md.t2mkdir.in.eas[2].flags = 0;
+   md.t2mkdir.in.eas[2].name.s = EATHREE;
+   md.t2mkdir.in.eas[2].value = data_blob_talloc(mem_ctx, xx1, 3);
status = smb_raw_mkdir(cli-tree, md);
-   CHECK_STATUS(status, NT_STATUS_UNSUCCESSFUL);
+   CHECK_STATUS(status, NT_STATUS_OK);
 
+   status = torture_check_ea(cli, path, EAONE, blah);
+   CHECK_STATUS(status, NT_STATUS_OK);
+   status = torture_check_ea(cli, path, EA TWO, foo bar);
+   CHECK_STATUS(status, NT_STATUS_OK);
+   status = torture_check_ea(cli, path, EATHREE, xx1);
+   CHECK_STATUS(status, NT_STATUS_OK);
 
+   status = smb_raw_rmdir(cli-tree, rd);
+   CHECK_STATUS(status, NT_STATUS_OK);
+
 done:
-   smbcli_rmdir(cli-tree, path);
-   smbcli_unlink(cli-tree, path);
+   smb_raw_exit(cli-session);
+   smbcli_deltree(cli-tree, BASEDIR);
return ret;
 }
 



svn commit: samba r4188 - in branches/SAMBA_3_0/source/libsmb: .

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:33:53 + (Tue, 14 Dec 2004)
New Revision: 4188

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4188

Log:
Ensure we add in the upper length in the right place !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libsmb/clireadwrite.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clireadwrite.c
===
--- branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2004-12-14 00:25:23 UTC 
(rev 4187)
+++ branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2004-12-14 00:33:53 UTC 
(rev 4188)
@@ -122,7 +122,7 @@
}
 
size2 = SVAL(cli-inbuf, smb_vwv5);
-   size2 |= (SVAL(cli-inbuf, smb_vwv7)  1);
+   size2 |= (((unsigned int)(SVAL(cli-inbuf, smb_vwv7)  1))  
16);
 
if (size2  readsize) {
DEBUG(5,(server returned more than we wanted!\n));



svn commit: samba r4189 - in trunk/source/libsmb: .

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:34:11 + (Tue, 14 Dec 2004)
New Revision: 4189

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4189

Log:
Ensure we add in the upper length in the right place !
Jeremy.

Modified:
   trunk/source/libsmb/clireadwrite.c


Changeset:
Modified: trunk/source/libsmb/clireadwrite.c
===
--- trunk/source/libsmb/clireadwrite.c  2004-12-14 00:33:53 UTC (rev 4188)
+++ trunk/source/libsmb/clireadwrite.c  2004-12-14 00:34:11 UTC (rev 4189)
@@ -122,7 +122,7 @@
}
 
size2 = SVAL(cli-inbuf, smb_vwv5);
-   size2 |= (SVAL(cli-inbuf, smb_vwv7)  1);
+   size2 |= (((unsigned int)(SVAL(cli-inbuf, smb_vwv7)  1))  
16);
 
if (size2  readsize) {
DEBUG(5,(server returned more than we wanted!\n));



svn commit: samba r4190 - in branches/SAMBA_3_0/source/smbd: .

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 01:11:22 + (Tue, 14 Dec 2004)
New Revision: 4190

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4190

Log:
When changing length calculations, get them right..
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/process.c
   branches/SAMBA_3_0/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/process.c
===
--- branches/SAMBA_3_0/source/smbd/process.c2004-12-14 00:34:11 UTC (rev 
4189)
+++ branches/SAMBA_3_0/source/smbd/process.c2004-12-14 01:11:22 UTC (rev 
4190)
@@ -1177,7 +1177,7 @@
int outsize2;
char inbuf_saved[smb_wct];
char outbuf_saved[smb_wct];
-   int outsize = smb_len(outbuf);
+   int outsize = smb_len(outbuf) + 4;
 
/* maybe its not chained */
if (smb_com2 == 0xFF) {

Modified: branches/SAMBA_3_0/source/smbd/reply.c
===
--- branches/SAMBA_3_0/source/smbd/reply.c  2004-12-14 00:34:11 UTC (rev 
4189)
+++ branches/SAMBA_3_0/source/smbd/reply.c  2004-12-14 01:11:22 UTC (rev 
4190)
@@ -2112,6 +2112,7 @@
 int send_file_readX(connection_struct *conn, char *inbuf,char *outbuf,int 
length, int len_outbuf,
files_struct *fsp, SMB_OFF_T startpos, size_t smb_maxcnt)
 {
+   int outsize = 0;
ssize_t nread = -1;
char *data = smb_buf(outbuf);
 
@@ -2197,7 +2198,7 @@
return(UNIXERROR(ERRDOS,ERRnoaccess));
}
 
-   set_message(outbuf,12,nread,False);
+   outsize = set_message(outbuf,12,nread,False);
SSVAL(outbuf,smb_vwv2,0x); /* Remaining - must be -1. */
SSVAL(outbuf,smb_vwv5,nread);
SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
@@ -2207,7 +2208,7 @@
DEBUG( 3, ( send_file_readX fnum=%d max=%d nread=%d\n,
fsp-fnum, (int)smb_maxcnt, (int)nread ) );
 
-   return nread;
+   return outsize;
 }
 
 /



svn commit: samba r4184 - in branches/SAMBA_3_0/source/rpc_server: .

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:20:55 + (Tue, 14 Dec 2004)
New Revision: 4184

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4184

Log:
Removed unused extern.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c
===
--- branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c   2004-12-13 
23:58:39 UTC (rev 4183)
+++ branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c   2004-12-14 
00:20:55 UTC (rev 4184)
@@ -5847,7 +5847,6 @@
 pipes_struct *p, SEC_DESC_BUF *secdesc_ctr)
 {
SEC_DESC_BUF *new_secdesc_ctr = NULL, *old_secdesc_ctr = NULL;
-   struct current_user user;
WERROR result;
int snum;
 



svn commit: samba r4170 - in branches/SAMBA_4_0/source/build/pidl: .

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-13 09:32:02 + (Mon, 13 Dec 2004)
New Revision: 4170

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4170

Log:
don't check array size for conformant arrays (they are checked separately)

Modified:
   branches/SAMBA_4_0/source/build/pidl/parser.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/parser.pm
===
--- branches/SAMBA_4_0/source/build/pidl/parser.pm  2004-12-13 09:26:13 UTC 
(rev 4169)
+++ branches/SAMBA_4_0/source/build/pidl/parser.pm  2004-12-13 09:32:02 UTC 
(rev 4170)
@@ -286,7 +286,8 @@
my $e = shift;
my $var_prefix = shift;
 
-   if (util::has_property($e, size_is)) {
+   if (!defined $e-{CONFORMANT_SIZE}  
+   util::has_property($e, size_is)) {
my $size = find_size_var($e, util::array_size($e), $var_prefix);
pidl \tif ($var_prefix$e-{NAME}) {\n;
check_null_pointer($size);


svn commit: samba r4169 - in branches/SAMBA_4_0/source/torture: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 09:26:13 + (Mon, 13 Dec 2004)
New Revision: 4169

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4169

Log:
add descriptions about binding and unc strings to the 
smbtorture --usage --help output

metze

Modified:
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/torture.c
===
--- branches/SAMBA_4_0/source/torture/torture.c 2004-12-13 02:04:34 UTC (rev 
4168)
+++ branches/SAMBA_4_0/source/torture/torture.c 2004-12-13 09:26:13 UTC (rev 
4169)
@@ -2567,6 +2567,50 @@
poptPrintUsage(pc, stdout, 0);
printf(\n);
 
+   printf(The binding format is:\n\n);
+
+   printf(  TRANSPORT:host[flags]\n\n);
+
+   printf(  where TRANSPORT is either ncacn_np for SMB or ncacn_ip_tcp 
for RPC/TCP\n\n);
+
+   printf(  'host' is an IP or hostname or netbios name. If the binding 
string\n);
+   printf(  identifies the server side of an endpoint, 'host' may be an 
empty\n);
+   printf(  string.\n\n);
+
+   printf(  'flags' can include a SMB pipe name if using the ncacn_np 
transport or\n);
+   printf(  a TCP port number if using the ncacn_ip_tcp transport, 
otherwise they\n);
+   printf(  will be auto-determined.\n\n);
+
+   printf(  other recognised flags are:\n\n);
+
+   printf(sign : enable ntlmssp signing\n);
+   printf(seal : enable ntlmssp sealing\n);
+   printf(connect : enable rpc connect level auth (auth, but no sign 
or seal)\n);
+   printf(validate: enable the NDR validator\n);
+   printf(print: enable debugging of the packets\n);
+   printf(bigendian: use bigendian RPC\n);
+   printf(padcheck: check reply data for non-zero pad bytes\n\n);
+
+   printf(  For example, these all connect to the samr pipe:\n\n);
+
+   printf(ncacn_np:myserver\n);
+   printf(ncacn_np:myserver[samr]\n);
+   printf(ncacn_np:myserver[\\pipe\\samr]\n);
+   printf(ncacn_np:myserver[/pipe/samr]\n);
+   printf(ncacn_np:myserver[samr,sign,print]\n);
+   printf(ncacn_np:myserver[\\pipe\\samr,sign,seal,bigendian]\n);
+   printf(ncacn_np:myserver[/pipe/samr,seal,validate]\n);
+   printf(ncacn_np:\n);
+   printf(ncacn_np:[/pipe/samr]\n\n);
+
+   printf(ncacn_ip_tcp:myserver\n);
+   printf(ncacn_ip_tcp:myserver[1024]\n);
+   printf(ncacn_ip_tcp:myserver[1024,sign,seal]\n\n);
+
+   printf(The unc format is:\n\n);
+
+   printf(//server/share\n\n);
+
printf(tests are:);
for (i=0;torture_ops[i].name;i++) {
if ((i%perline)==0) {
@@ -2577,7 +2621,7 @@
printf(\n\n);
 
printf(default test is ALL\n);
-   
+
exit(1);
 }
 


svn commit: samba r4173 - in branches/SAMBA_4_0/source: include libcli/raw ntvfs ntvfs/posix smb_server torture torture/raw

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-13 10:48:21 + (Mon, 13 Dec 2004)
New Revision: 4173

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4173

Log:
- new t2open code, that can cope with create with EAs. Many thanks
  to kukks on #samba-technical for the sniffs that allowed me to work
  this out

- much simpler ntvfs open generic mapping code

- added t2open create with EA torture test to RAW-OPEN test


Modified:
   branches/SAMBA_4_0/source/include/smb_interfaces.h
   branches/SAMBA_4_0/source/libcli/raw/clisession.c
   branches/SAMBA_4_0/source/libcli/raw/rawfile.c
   branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
   branches/SAMBA_4_0/source/smb_server/reply.c
   branches/SAMBA_4_0/source/torture/gentest.c
   branches/SAMBA_4_0/source/torture/raw/eas.c
   branches/SAMBA_4_0/source/torture/raw/open.c
   branches/SAMBA_4_0/source/torture/raw/search.c
   branches/SAMBA_4_0/source/torture/torture_util.c


Changeset:
Sorry, the patch is too large (1074 lines) to include; please use WebSVN to see 
it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4173


svn commit: samba r4174 - in branches/SAMBA_4_0/source/librpc/idl: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 10:48:35 + (Mon, 13 Dec 2004)
New Revision: 4174

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4174

Log:
nicer debug output

metze

Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 10:48:21 UTC 
(rev 4173)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 10:48:35 UTC 
(rev 4174)
@@ -50,7 +50,7 @@
 
/*/
/* Function 0x02 */
-   typedef struct {
+   typedef [flag(NDR_PAHEX)] struct {
uint32 unknown1;
uint32 unknown2;
GUID guid1;


svn commit: samba r4175 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc

2004-12-13 Thread jelmer
Author: jelmer
Date: 2004-12-13 11:00:24 + (Mon, 13 Dec 2004)
New Revision: 4175

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4175

Log:
InitiateSystemShutdownEx IDL and torture test

Modified:
   branches/SAMBA_4_0/source/librpc/idl/winreg.idl
   branches/SAMBA_4_0/source/torture/rpc/winreg.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/winreg.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2004-12-13 10:48:35 UTC 
(rev 4174)
+++ branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2004-12-13 11:00:24 UTC 
(rev 4175)
@@ -324,7 +324,13 @@
/**/
/* Function: 0x1e */
WERROR winreg_InitiateSystemShutdownEx(
-   );
+   [in] uint16 *hostname,
+   [in] winreg_String *message,
+   [in] uint32 timeout,
+   [in] uint8 force_apps,
+   [in] uint8 reboot,
+   [in] uint32 reason
+   );
 
/**/
/* Function: 0x1f */

Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c
===
--- branches/SAMBA_4_0/source/torture/rpc/winreg.c  2004-12-13 10:48:35 UTC 
(rev 4174)
+++ branches/SAMBA_4_0/source/torture/rpc/winreg.c  2004-12-13 11:00:24 UTC 
(rev 4175)
@@ -578,6 +578,35 @@
return True;
 }
 
+static BOOL test_InitiateSystemShutdownEx(struct dcerpc_pipe *p, TALLOC_CTX 
*mem_ctx,
+   const char *msg, uint32_t timeout)
+{
+   struct winreg_InitiateSystemShutdownEx r;
+   NTSTATUS status;
+   
+   r.in.hostname = NULL;
+   r.in.message = talloc_p(mem_ctx, struct winreg_String);
+   init_winreg_String(r.in.message, msg);
+   r.in.force_apps = 1;
+   r.in.timeout = timeout;
+   r.in.reboot = 1;
+   r.in.reason = 0;
+
+   status = dcerpc_winreg_InitiateSystemShutdownEx(p, mem_ctx, r);
+
+   if (!NT_STATUS_IS_OK(status)) {
+   printf(InitiateSystemShutdownEx failed - %s\n, 
nt_errstr(status));
+   return False;
+   }
+
+   if (!W_ERROR_IS_OK(r.out.result)) {
+   printf(InitiateSystemShutdownEx failed - %s\n, 
win_errstr(r.out.result));
+   return False;
+   }
+
+   return True;
+}
+
 static BOOL test_AbortSystemShutdown(struct dcerpc_pipe *p, TALLOC_CTX 
*mem_ctx)
 {
struct winreg_AbortSystemShutdown r;
@@ -746,6 +775,8 @@
} else {
ret = test_InitiateSystemShutdown(p, mem_ctx, spottyfood, 
30);
ret = test_AbortSystemShutdown(p, mem_ctx);
+   ret = test_InitiateSystemShutdownEx(p, mem_ctx, spottyfood, 
30);
+   ret = test_AbortSystemShutdown(p, mem_ctx);
}
 
for (i = 0; i  ARRAY_SIZE(open_fns); i++) {


svn commit: samba r4176 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 11:34:57 + (Mon, 13 Dec 2004)
New Revision: 4176

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4176

Log:
I just remeber that I have already implement STR_CONFORMANT

so use it in DsReplicaSync()

metze

Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 11:00:24 UTC 
(rev 4175)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 11:34:57 UTC 
(rev 4176)
@@ -55,8 +55,7 @@
uint32 unknown2;
GUID guid1;
uint8 unknown3[28];
-   [range(0,0xA0)] uint32 length;
-   [size_is(length+1)] uint16 nc_dn[*];
+   [flag(STR_SIZE4|STR_CHARLEN|STR_CONFORMANT)] string nc_dn;
} drsuapi_DsReplicaSyncRequest1Info;
 
typedef struct {

Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 11:00:24 UTC 
(rev 4175)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 11:34:57 UTC 
(rev 4176)
@@ -780,22 +780,18 @@
 
r.in.level = array[i].level;
switch(r.in.level) {
-   case 1: {
-   uint16_t string[] = { 0x0064, 0x0063, 0x003d, 0x0073, 
0x0039, 0x};
-   ZERO_STRUCT(r.in.req.req1);
+   case 1:
r.in.req.req1.info  = info1;
r.in.req.req1.info-unknown1= 32;
r.in.req.req1.info-unknown2= 120;
ZERO_STRUCT(r.in.req.req1.info-guid1);
ZERO_ARRAY(r.in.req.req1.info-unknown3);
-   r.in.req.req1.info-length  = 
ARRAY_SIZE(string)-1;
-   r.in.req.req1.info-nc_dn   = 
string;/*priv-domain_obj_dn*/;
+   r.in.req.req1.info-nc_dn   = 
priv-domain_obj_dn;
r.in.req.req1.guid1 = 
priv-dcinfo.ntds_guid;
r.in.req.req1.string1   = NULL;
r.in.req.req1.unknown1  = 16;
break;
}
-   }
 
status = dcerpc_drsuapi_DsReplicaSync(p, mem_ctx, r);
if (!NT_STATUS_IS_OK(status)) {


svn commit: samba r4180 - in branches/SAMBA_4_0/source/torture/rpc: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 12:28:47 + (Mon, 13 Dec 2004)
New Revision: 4180

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4180

Log:
use the same syntax as the other torture tests

metze

Modified:
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 12:24:57 UTC 
(rev 4179)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2004-12-13 12:28:47 UTC 
(rev 4180)
@@ -772,6 +772,11 @@
}
};
 
+   if (lp_parm_int(-1, torture, dangerous) != 1) {
+   printf(DsReplicaSync disabled - enable dangerous tests to 
use\n);
+   return True;
+   }
+
r.in.bind_handle= priv-bind_handle;
 
for (i=0; i  ARRAY_SIZE(array); i++) {
@@ -870,11 +875,7 @@
 
ret = test_DsReplicaGetInfo(p, mem_ctx, priv);
 
-   if (lp_parm_int(-1, torture, dangerous) == 1) {
-   ret = test_DsReplicaSync(p, mem_ctx, priv);
-   } else {
-   printf(DsReplicaSync disabled - enable dangerous tests to 
use\n);
-   }
+   ret = test_DsReplicaSync(p, mem_ctx, priv);
 
ret = test_DsUnbind(p, mem_ctx, priv);
 


svn commit: samba r4181 - in branches/SAMBA_4_0/source/librpc/idl: .

2004-12-13 Thread metze
Author: metze
Date: 2004-12-13 12:34:43 + (Mon, 13 Dec 2004)
New Revision: 4181

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4181

Log:
use int32 for level

metze

Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 12:28:47 UTC 
(rev 4180)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl2004-12-13 12:34:43 UTC 
(rev 4181)
@@ -181,7 +181,7 @@
 
WERROR drsuapi_DsCrackNames(
[in,ref] policy_handle *bind_handle,
-   [in, out] uint32 level,
+   [in, out] int32 level,
[in,switch_is(level)] drsuapi_DsNameRequest req,
[out,switch_is(level)] drsuapi_DsNameCtr ctr
);
@@ -216,7 +216,7 @@
 
WERROR drsuapi_DsWriteAccountSpn(
[in,ref] policy_handle *bind_handle,
-   [in, out] uint32 level,
+   [in, out] int32 level,
[in,switch_is(level)] drsuapi_DsWriteAccountSpnRequest req,
[out,switch_is(level)] drsuapi_DsWriteAccountSpnResult res
);


svn commit: samba r4186 - in branches/SAMBA_3_0/source: include libsmb smbd

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:25:11 + (Tue, 14 Dec 2004)
New Revision: 4186

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4186

Log:
Fix client   server to allow 127k READX calls.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/include/client.h
   branches/SAMBA_3_0/source/libsmb/cliconnect.c
   branches/SAMBA_3_0/source/libsmb/clireadwrite.c
   branches/SAMBA_3_0/source/smbd/process.c
   branches/SAMBA_3_0/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/include/client.h
===
--- branches/SAMBA_3_0/source/include/client.h  2004-12-14 00:20:57 UTC (rev 
4185)
+++ branches/SAMBA_3_0/source/include/client.h  2004-12-14 00:25:11 UTC (rev 
4186)
@@ -27,8 +27,8 @@
overlap on the wire. This size gives us a nice read/write size, which
will be a multiple of the page size on almost any system */
 #define CLI_BUFFER_SIZE (0x)
+#define CLI_MAX_LARGE_READX_SIZE (127*1024)
 
-
 /*
  * These definitions depend on smb.h
  */

Modified: branches/SAMBA_3_0/source/libsmb/cliconnect.c
===
--- branches/SAMBA_3_0/source/libsmb/cliconnect.c   2004-12-14 00:20:57 UTC 
(rev 4185)
+++ branches/SAMBA_3_0/source/libsmb/cliconnect.c   2004-12-14 00:25:11 UTC 
(rev 4186)
@@ -151,12 +151,7 @@
if (cli-use_level_II_oplocks)
capabilities |= CAP_LEVEL_II_OPLOCKS;
 
-   if (cli-capabilities  CAP_UNICODE)
-   capabilities |= CAP_UNICODE;
-
-   if (cli-capabilities  CAP_LARGE_FILES)
-   capabilities |= CAP_LARGE_FILES;
-
+   capabilities |= (cli-capabilities  
(CAP_UNICODE|CAP_LARGE_FILES|CAP_LARGE_READX|CAP_LARGE_WRITEX));
return capabilities;
 }
 
@@ -1134,6 +1129,14 @@
cli-sign_info.negotiated_smb_signing = True;
}
 
+   if (cli-capabilities  (CAP_LARGE_READX|CAP_LARGE_WRITEX)) {
+   SAFE_FREE(cli-outbuf);
+   SAFE_FREE(cli-inbuf);
+   cli-outbuf = (char 
*)SMB_MALLOC(CLI_MAX_LARGE_READX_SIZE+SAFETY_MARGIN);
+   cli-inbuf = (char 
*)SMB_MALLOC(CLI_MAX_LARGE_READX_SIZE+SAFETY_MARGIN);
+   cli-bufsize = CLI_MAX_LARGE_READX_SIZE;
+   }
+
} else if (cli-protocol = PROTOCOL_LANMAN1) {
cli-use_spnego = False;
cli-sec_mode = SVAL(cli-inbuf,smb_vwv1);

Modified: branches/SAMBA_3_0/source/libsmb/clireadwrite.c
===
--- branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2004-12-14 00:20:57 UTC 
(rev 4185)
+++ branches/SAMBA_3_0/source/libsmb/clireadwrite.c 2004-12-14 00:25:11 UTC 
(rev 4186)
@@ -48,6 +48,7 @@
SIVAL(cli-outbuf,smb_vwv3,offset);
SSVAL(cli-outbuf,smb_vwv5,size);
SSVAL(cli-outbuf,smb_vwv6,size);
+   SSVAL(cli-outbuf,smb_vwv7,((size  16)  1));
SSVAL(cli-outbuf,smb_mid,cli-mid + i);
 
if (bigoffset)
@@ -75,7 +76,11 @@
 * rounded down to a multiple of 1024.
 */
 
-   readsize = (cli-max_xmit - (smb_size+32))  ~1023;
+   if (cli-capabilities  CAP_LARGE_READX) {
+   readsize = CLI_MAX_LARGE_READX_SIZE;
+   } else {
+   readsize = (cli-max_xmit - (smb_size+32))  ~1023;
+   }
 
while (total  size) {
readsize = MIN(readsize, size-total);
@@ -117,6 +122,7 @@
}
 
size2 = SVAL(cli-inbuf, smb_vwv5);
+   size2 |= (SVAL(cli-inbuf, smb_vwv7)  1);
 
if (size2  readsize) {
DEBUG(5,(server returned more than we wanted!\n));

Modified: branches/SAMBA_3_0/source/smbd/process.c
===
--- branches/SAMBA_3_0/source/smbd/process.c2004-12-14 00:20:57 UTC (rev 
4185)
+++ branches/SAMBA_3_0/source/smbd/process.c2004-12-14 00:25:11 UTC (rev 
4186)
@@ -1177,8 +1177,7 @@
int outsize2;
char inbuf_saved[smb_wct];
char outbuf_saved[smb_wct];
-   int wct = CVAL(outbuf,smb_wct);
-   int outsize = smb_size + 2*wct + SVAL(outbuf,smb_vwv0+2*wct);
+   int outsize = smb_len(outbuf);
 
/* maybe its not chained */
if (smb_com2 == 0xFF) {

Modified: branches/SAMBA_3_0/source/smbd/reply.c
===
--- branches/SAMBA_3_0/source/smbd/reply.c  2004-12-14 00:20:57 UTC (rev 
4185)
+++ branches/SAMBA_3_0/source/smbd/reply.c  2004-12-14 00:25:11 UTC (rev 
4186)
@@ -2148,6 +2148,7 @@
SSVAL(outbuf,smb_vwv2,0x); /* Remaining - must be -1. */
SSVAL(outbuf,smb_vwv5,smb_maxcnt);
SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
+   SSVAL(outbuf,smb_vwv7,((smb_maxcnt  16)  1));

svn commit: samba r4187 - in trunk/source: include libsmb smbd

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:25:23 + (Tue, 14 Dec 2004)
New Revision: 4187

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4187

Log:
Fix client   server to allow 127k READX calls.
Jeremy.

Modified:
   trunk/source/include/client.h
   trunk/source/libsmb/cliconnect.c
   trunk/source/libsmb/clireadwrite.c
   trunk/source/smbd/process.c
   trunk/source/smbd/reply.c


Changeset:
Modified: trunk/source/include/client.h
===
--- trunk/source/include/client.h   2004-12-14 00:25:11 UTC (rev 4186)
+++ trunk/source/include/client.h   2004-12-14 00:25:23 UTC (rev 4187)
@@ -27,8 +27,8 @@
overlap on the wire. This size gives us a nice read/write size, which
will be a multiple of the page size on almost any system */
 #define CLI_BUFFER_SIZE (0x)
+#define CLI_MAX_LARGE_READX_SIZE (127*1024)
 
-
 /*
  * These definitions depend on smb.h
  */

Modified: trunk/source/libsmb/cliconnect.c
===
--- trunk/source/libsmb/cliconnect.c2004-12-14 00:25:11 UTC (rev 4186)
+++ trunk/source/libsmb/cliconnect.c2004-12-14 00:25:23 UTC (rev 4187)
@@ -151,12 +151,7 @@
if (cli-use_level_II_oplocks)
capabilities |= CAP_LEVEL_II_OPLOCKS;
 
-   if (cli-capabilities  CAP_UNICODE)
-   capabilities |= CAP_UNICODE;
-
-   if (cli-capabilities  CAP_LARGE_FILES)
-   capabilities |= CAP_LARGE_FILES;
-
+   capabilities |= (cli-capabilities  
(CAP_UNICODE|CAP_LARGE_FILES|CAP_LARGE_READX|CAP_LARGE_WRITEX));
return capabilities;
 }
 
@@ -1134,6 +1129,14 @@
cli-sign_info.negotiated_smb_signing = True;
}
 
+   if (cli-capabilities  (CAP_LARGE_READX|CAP_LARGE_WRITEX)) {
+   SAFE_FREE(cli-outbuf);
+   SAFE_FREE(cli-inbuf);
+   cli-outbuf = (char 
*)SMB_MALLOC(CLI_MAX_LARGE_READX_SIZE+SAFETY_MARGIN);
+   cli-inbuf = (char 
*)SMB_MALLOC(CLI_MAX_LARGE_READX_SIZE+SAFETY_MARGIN);
+   cli-bufsize = CLI_MAX_LARGE_READX_SIZE;
+   }
+
} else if (cli-protocol = PROTOCOL_LANMAN1) {
cli-use_spnego = False;
cli-sec_mode = SVAL(cli-inbuf,smb_vwv1);

Modified: trunk/source/libsmb/clireadwrite.c
===
--- trunk/source/libsmb/clireadwrite.c  2004-12-14 00:25:11 UTC (rev 4186)
+++ trunk/source/libsmb/clireadwrite.c  2004-12-14 00:25:23 UTC (rev 4187)
@@ -48,6 +48,7 @@
SIVAL(cli-outbuf,smb_vwv3,offset);
SSVAL(cli-outbuf,smb_vwv5,size);
SSVAL(cli-outbuf,smb_vwv6,size);
+   SSVAL(cli-outbuf,smb_vwv7,((size  16)  1));
SSVAL(cli-outbuf,smb_mid,cli-mid + i);
 
if (bigoffset)
@@ -75,7 +76,11 @@
 * rounded down to a multiple of 1024.
 */
 
-   readsize = (cli-max_xmit - (smb_size+32))  ~1023;
+   if (cli-capabilities  CAP_LARGE_READX) {
+   readsize = CLI_MAX_LARGE_READX_SIZE;
+   } else {
+   readsize = (cli-max_xmit - (smb_size+32))  ~1023;
+   }
 
while (total  size) {
readsize = MIN(readsize, size-total);
@@ -117,6 +122,7 @@
}
 
size2 = SVAL(cli-inbuf, smb_vwv5);
+   size2 |= (SVAL(cli-inbuf, smb_vwv7)  1);
 
if (size2  readsize) {
DEBUG(5,(server returned more than we wanted!\n));

Modified: trunk/source/smbd/process.c
===
--- trunk/source/smbd/process.c 2004-12-14 00:25:11 UTC (rev 4186)
+++ trunk/source/smbd/process.c 2004-12-14 00:25:23 UTC (rev 4187)
@@ -1177,8 +1177,7 @@
int outsize2;
char inbuf_saved[smb_wct];
char outbuf_saved[smb_wct];
-   int wct = CVAL(outbuf,smb_wct);
-   int outsize = smb_size + 2*wct + SVAL(outbuf,smb_vwv0+2*wct);
+   int outsize = smb_len(outbuf);
 
/* maybe its not chained */
if (smb_com2 == 0xFF) {

Modified: trunk/source/smbd/reply.c
===
--- trunk/source/smbd/reply.c   2004-12-14 00:25:11 UTC (rev 4186)
+++ trunk/source/smbd/reply.c   2004-12-14 00:25:23 UTC (rev 4187)
@@ -2148,6 +2148,7 @@
SSVAL(outbuf,smb_vwv2,0x); /* Remaining - must be -1. */
SSVAL(outbuf,smb_vwv5,smb_maxcnt);
SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
+   SSVAL(outbuf,smb_vwv7,((smb_maxcnt  16)  1));
SSVAL(smb_buf(outbuf),-2,smb_maxcnt);
SCVAL(outbuf,smb_vwv0,0xFF);
set_message(outbuf,12,smb_maxcnt,False);
@@ -2196,9 +2197,11 @@
return(UNIXERROR(ERRDOS,ERRnoaccess));
}
 
+   set_message(outbuf,12,nread,False);

svn commit: samba r4182 - in branches/SAMBA_4_0/source: libcli/raw ntvfs/posix smb_server

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-13 23:57:59 + (Mon, 13 Dec 2004)
New Revision: 4182

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4182

Log:
fixed trans2 mkdir, allowing mkdir with an initial EA list

Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawfile.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
   branches/SAMBA_4_0/source/smb_server/trans2.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawfile.c
===
--- branches/SAMBA_4_0/source/libcli/raw/rawfile.c  2004-12-13 12:34:43 UTC 
(rev 4181)
+++ branches/SAMBA_4_0/source/libcli/raw/rawfile.c  2004-12-13 23:57:59 UTC 
(rev 4182)
@@ -122,7 +122,7 @@
 
data_total = ea_list_size(parms-t2mkdir.in.num_eas, 
parms-t2mkdir.in.eas);
 
-   t2.in.max_param = 0;
+   t2.in.max_param = 2;
t2.in.max_data = 0;
t2.in.max_setup = 0;
t2.in.flags = 0;
@@ -135,7 +135,7 @@
SIVAL(t2.in.params.data, VWV(0), 0); /* reserved */
 
smbcli_blob_append_string(tree-session, mem_ctx, 
-  t2.in.params, parms-t2mkdir.in.path, 0);
+ t2.in.params, parms-t2mkdir.in.path, 
STR_TERMINATE);
 
ea_put_list(t2.in.data.data, parms-t2mkdir.in.num_eas, 
parms-t2mkdir.in.eas);
 

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2004-12-13 12:34:43 UTC 
(rev 4181)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2004-12-13 23:57:59 UTC 
(rev 4182)
@@ -24,6 +24,54 @@
 #include vfs_posix.h
 
 /*
+  create a directory with EAs
+*/
+static NTSTATUS pvfs_t2mkdir(struct pvfs_state *pvfs,
+struct smbsrv_request *req, union smb_mkdir *md)
+{
+   NTSTATUS status;
+   struct pvfs_filename *name;
+   mode_t mode;
+   int i;
+
+   /* resolve the cifs name to a posix name */
+   status = pvfs_resolve_name(pvfs, req, md-t2mkdir.in.path, 0, name);
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+
+   if (name-exists) {
+   return NT_STATUS_OBJECT_NAME_COLLISION;
+   }
+
+   mode = pvfs_fileperms(pvfs, FILE_ATTRIBUTE_DIRECTORY);
+
+   if (mkdir(name-full_name, mode) == -1) {
+   return pvfs_map_errno(pvfs, errno);
+   }
+
+   status = pvfs_resolve_name(pvfs, req, md-t2mkdir.in.path, 0, name);
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+   if (!name-exists ||
+   !(name-dos.attrib  FILE_ATTRIBUTE_DIRECTORY)) {
+   return NT_STATUS_INTERNAL_ERROR;
+   }
+
+   /* setup any EAs that were asked for */
+   for (i=0;imd-t2mkdir.in.num_eas;i++) {
+   status = pvfs_setfileinfo_ea_set(pvfs, name, -1, 
md-t2mkdir.in.eas[i]);
+   if (!NT_STATUS_IS_OK(status)) {
+   rmdir(name-full_name);
+   return status;
+   }
+   }
+
+   return NT_STATUS_OK;
+}
+
+/*
   create a directory
 */
 NTSTATUS pvfs_mkdir(struct ntvfs_module_context *ntvfs,
@@ -34,6 +82,10 @@
struct pvfs_filename *name;
mode_t mode;
 
+   if (md-generic.level == RAW_MKDIR_T2MKDIR) {
+   return pvfs_t2mkdir(pvfs, req, md);
+   }
+
if (md-generic.level != RAW_MKDIR_MKDIR) {
return NT_STATUS_INVALID_LEVEL;
}

Modified: branches/SAMBA_4_0/source/smb_server/trans2.c
===
--- branches/SAMBA_4_0/source/smb_server/trans2.c   2004-12-13 12:34:43 UTC 
(rev 4181)
+++ branches/SAMBA_4_0/source/smb_server/trans2.c   2004-12-13 23:57:59 UTC 
(rev 4182)
@@ -464,7 +464,48 @@
return status;
 }
 
+
 /*
+  trans2 mkdir implementation
+*/
+static NTSTATUS trans2_mkdir(struct smbsrv_request *req, struct smb_trans2 
*trans)
+{
+   union smb_mkdir *io;
+   NTSTATUS status;
+
+   /* make sure we got enough parameters */
+   if (trans-in.params.length  5) {
+   return NT_STATUS_FOOBAR;
+   }
+
+   io = talloc_p(req, union smb_mkdir);
+   if (io == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }
+
+   io-t2mkdir.level = RAW_MKDIR_T2MKDIR;
+   trans2_pull_blob_string(req, trans-in.params, 4, 
io-t2mkdir.in.path, 0);
+
+   status = ea_pull_list(trans-in.data, io, 
+ io-t2mkdir.in.num_eas, 
+ io-t2mkdir.in.eas);
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+
+   status = ntvfs_mkdir(req, io);
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+
+   trans2_setup_reply(req, trans, 2, 0, 0);
+
+   SSVAL(trans-out.params.data, VWV(0), 0);
+
+   return status;
+}
+
+/*
   fill in 

svn commit: samba r4185 - in trunk/source/rpc_server: .

2004-12-13 Thread jra
Author: jra
Date: 2004-12-14 00:20:57 + (Tue, 14 Dec 2004)
New Revision: 4185

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4185

Log:
Removed unused extern.
Jeremy.

Modified:
   trunk/source/rpc_server/srv_spoolss_nt.c


Changeset:
Modified: trunk/source/rpc_server/srv_spoolss_nt.c
===
--- trunk/source/rpc_server/srv_spoolss_nt.c2004-12-14 00:20:55 UTC (rev 
4184)
+++ trunk/source/rpc_server/srv_spoolss_nt.c2004-12-14 00:20:57 UTC (rev 
4185)
@@ -5847,7 +5847,6 @@
 pipes_struct *p, SEC_DESC_BUF *secdesc_ctr)
 {
SEC_DESC_BUF *new_secdesc_ctr = NULL, *old_secdesc_ctr = NULL;
-   struct current_user user;
WERROR result;
int snum;
 


svn commit: samba r4192 - in branches/SAMBA_4_0/source/rpc_server/lsa: .

2004-12-13 Thread tridge
Author: tridge
Date: 2004-12-14 04:45:00 + (Tue, 14 Dec 2004)
New Revision: 4192

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4192

Log:
added server side implementation of lsa_EnumAccountRights

the privilege command in smbclient now works against Samba4

Modified:
   branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
===
--- branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c   2004-12-14 
01:11:22 UTC (rev 4191)
+++ branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c   2004-12-14 
04:45:00 UTC (rev 4192)
@@ -838,10 +838,54 @@
 /* 
   lsa_EnumAccountRights 
 */
-static NTSTATUS lsa_EnumAccountRights(struct dcesrv_call_state *dce_call, 
TALLOC_CTX *mem_ctx,
-  struct lsa_EnumAccountRights *r)
+static NTSTATUS lsa_EnumAccountRights(struct dcesrv_call_state *dce_call, 
+ TALLOC_CTX *mem_ctx,
+ struct lsa_EnumAccountRights *r)
 {
-   DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+   struct dcesrv_handle *h;
+   struct lsa_policy_state *state;
+   int ret, i;
+   struct ldb_message **res;
+   const char * const attrs[] = { privilege, NULL};
+   const char *sidstr;
+   struct ldb_message_element *el;
+
+   DCESRV_PULL_HANDLE(h, r-in.handle, LSA_HANDLE_POLICY);
+
+   state = h-data;
+
+   sidstr = dom_sid_string(mem_ctx, r-in.sid);
+   if (sidstr == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }
+
+   ret = samdb_search(state-sam_ctx, mem_ctx, NULL, res, attrs, 
+  objectSid=%s, sidstr);
+   if (ret != 1) {
+   return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+   }
+
+   el = ldb_msg_find_element(res[0], privilege);
+   if (el == NULL || el-num_values == 0) {
+   return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+   }
+
+   r-out.rights = talloc_p(mem_ctx, struct lsa_RightSet);
+   if (r-out.rights == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }
+   r-out.rights-count = el-num_values;
+   r-out.rights-names = talloc_array_p(r-out.rights, 
+ struct lsa_String, 
r-out.rights-count);
+   if (r-out.rights-names == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }
+
+   for (i=0;iel-num_values;i++) {
+   r-out.rights-names[i].string = el-values[i].data;
+   }
+
+   return NT_STATUS_OK;
 }
 
 


  1   2   >