RE: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin g else?

2005-06-23 Thread Geoff Scott
John H Terpstra wrote:
 On Wednesday 22 June 2005 22:53, Geoff Scott wrote:

 populations IT knowledge!)
 
 
 In your smb.conf [global] set:
 
   server string = MADMAX
 
 That will stop display of the samba version info. You will have to
 clear the connection history from ALL Windows clients - they remember
 the old server string and do not refresh it.  
 
 - John T.

Yep, I had a server string in there for a week already.  And did a reload,
but nothing changed.  It's been showing Samba 3.0.7 in the window title
bars for ages even though I've been on 3.0.14a for a while.

So do I completely restart all smbd processes, or do I have to restart every
windows box before the server string (windows title bar) changes?



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] 3.0.20pre1 - Test in NT4 Domain using winbind nested groups

2005-06-23 Thread Grant Bigham
Guys, I've been testing functionality of this new release in my playpen
setup. So far things appear to be working ok, however in an NT4 Domain
with winbind nested groups = yes defined I see none of the NT4 DC's 
local groups in Samba, either via wbinfo -g, getent group, or via
Windows Explorer security dialogs.

Presumably the reasonably recent nested groups support will work in an
NT4 domain, as it appears to in ADS (although I've not yet tested in ADS
envr myself, yet)?

Envr:   SLES8 2.4.21-278 Kernel, glibc-2.2.5-231
Arch: (s390)

excerpt from smb.conf:
[global]
workgroup = DBR05A
netbios name = SLES81
netbios aliases = THOME VHOME QHOME
server string = SLES8 Samba Test Server
os level = 65
domain master = no
domain logons = no
preferred master = no
local master = no
wins server = 10.250.0.110
security = DOMAIN
encrypt passwords = yes
password server = gollum
max mux = 500
winbind uid = 1-2
winbind gid = 1-2
winbind separator = +
winbind nested groups = yes
deadtime = 60
smb ports = 139 445
###
##Start of the default options for defined shares##
###
browseable = yes
read only = no
nt acl support = yes
guest ok = no
inherit acls = yes
inherit owner = yes
; inherit group = yes
dos filetimes = yes
map acl inherit = yes
store dos attributes = yes
vfs objects = audit

I plan to test this on x86 arch also, but expect the same unless this is
an endian bug.

Cheers, Grant

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


Re: [Samba] Problem Connecting to Samba-OpenLDAP PDC

2005-06-23 Thread Tomasz Chmielewski

Adam Gritt schrieb:

I have found perhaps why it is not updating the passwd/shadow database
properly and I know this may not be the right list to ask this
question but I am going to give it a try.

when I try to run the straight useradd command to add a linux user to
see if once I do that it will allow me to connect to make sure that
everything else is working, I get the following error:

error opening shadow group file

I, however, do not know how to fix this or where I should persue the
issue.  can someone point me in the right direction?


Your system seems to be seriously screwed... :)

Do you have a /etc/shadow file?


--
Tomek
WPKG - install software on your Samba clients
http://wpkg.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] MIT Kerberso or Heimdal Kerberos what is the question?

2005-06-23 Thread MIN
I have some problem whit Kerberos.
OS: FreeBSD 5.3
Domain: W2k3 native mode.
1)I am Installing Heimdal 0.6.1 over port. Config /etc/krb5.conf
%/usr/local/bin/kinit ivan 
[EMAIL PROTECTED]'s Password: 
kinit: krb5_get_init_creds: Response too big for UDP, retry with TCP 
2)Compile and install  Heimdal 0.6.4 over source
%/usr/local/bin/kinit ivan 
[EMAIL PROTECTED]'s Password: 
kinit: krb5_get_init_creds: Additional pre-authentication required 
3)Install over ports MIT krb5-1.3.4
%/usr/local/bin/kinit ivan 
Password for [EMAIL PROTECTED]: 
%
That graet! Mit is working. But not compile Samba. I use Samba.3.0.14a
ports. I captured tcp packet. And see that MIT version working over
tcp session, but Heimdal version vorking over udp and try over tcp but
unseccessfuly. We have many groups in our domain. If i create new user
account, and not add this account in many groups all work fine! What
should i do?
We have 2500 users. And some groups in our domain labeled at russian
language.
Thank for help.




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


[Samba] Policy Violation

2005-06-23 Thread Symantec_AntiVirus_for_SMTP_Gateways
The following message sent by this account has violated system policy:

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 23 Jun 2005 08:07:09 +0100
Subject: Mail Delivery (failure [EMAIL PROTECTED])


The following violations were detected:

--- Scan information follows ---

Virus Name: [EMAIL PROTECTED]
File Attachment: message.scr
Attachment Status: deleted





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


Re: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin g else?

2005-06-23 Thread Alex Satrapa

On 23 Jun 2005, at 16:12, Geoff Scott wrote:

So do I completely restart all smbd processes, or do I have to  
restart every

windows box before the server string (windows title bar) changes?


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


[Samba] smbclient fails to list directory 36 entries

2005-06-23 Thread Shaun Lowry

Hi all,

I have a problem with smbclient from the samba-client-3.0.14a-2 package 
supplied with Fedora Core 2.  It hangs when listing any directory with 
over 36 items in it on one particular Windows XP Professional box I'm 
trying to back up.  If I run smbclient -d 3, I get the following output 
over and over when listing the directory:


received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)
received 36 entries (eos=0)

Anyone got any clues what might be wrong here?

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


Re: [Samba] Samba/LDAP

2005-06-23 Thread kalasala
also http://www.unav.es/cti/ldap-smb-howto.html is pretty good howto.

On 6/22/05, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 
 Jason Greene schrieb:
  I've been pulling my teeth out trying to get SAMBA/LDAP configured.
 
  Before I ask my questions...
 
  Is this the right place to ask about the necessary attributes to put in
  LDAP for SAMBA to authenticate against?
 
 Generally it's a good place to ask such questions.
 
 But before you do so, make sure you've read an excellent Guide on this
 topic: Samba-3 by Example (chapter 5 is about Samba and LDAP).
 
 There it is explained how to configure everything from the beginning to
 the end, so that you won't have to put any attributes by hand into LDAP.
 
 
 You will find it on www.samba.org http://www.samba.org (Learn Samba).
 
 --
 Tomek
 WPKG - deploy software to your Samba clients
 http://wpkg.org
 --
 To unsubscribe from this list go to the following URL and read the
 instructions: https://lists.samba.org/mailman/listinfo/samba
 



-- 
http://www.axeltabs.com/
http://roundhound.com/
http://linuxarcher.net/bb/
http://divx-subtitles.org/
http://guitar-tabs-lyrics.com/
--
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] I NEED LINUX/W2K LAN ASSISTANCE

2005-06-23 Thread JV171Seis
I am challenged to bring up a 5 nodes Linux/w2k small LAN and  following 
samba server step by step by Ying Zhang to implement this.
 
inetd.conf that should contain a line like:
 
swat stream tcp nowait: 400root/user/sbintcp swath 
 
is not found at
 
/etc/
 
where else can i find it.
 
Francis Boro
Nigeria
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] How to I change server=[Samba 3.04.14a-2] to something else?

2005-06-23 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

AWC Lists wrote:
 
 Heck I could even live with:
 Office on 'Samba (roipdc)' (G:)
 I personally do not see the need for end users to have the version
 number announced to them to be honest.
 
...
 Gerry, thanks for the suggestion - I'll likely 
 play around with it on a non-production test machine
 sometime soon.  But I am always hesitant to
 deploy a non-standard hack like this into a production 
 machine.

Be aware that the session setup lanman string is the same
value as the default 'server string' value.  Try changing
that smb.conf option first.  I thought in your original post
you were referring to smbclient output which uses the lanman
string in the session setup reply packet.  I think XP is just
using the server details.




cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCup8BIR7qMdg1EfYRAsTPAJ44H2ht0RAKGMFH8pYh1sjK9FVT7wCcDo0R
ugRye1t9uvrDqbL9FOoUi3s=
=WG3b
-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] Rights upon share folders and subfolders in smb.conf

2005-06-23 Thread Felipe
Hi people!

There is anyway I could control the rights of the users upon share
folders and its subfolders within smb.conf? I'll try to give an
example:

 [folder1]
path = /home/data/folder1
writeable = yes
valid users = user1 user2
force group = folder1
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
browsable = yes

 [folder2]
path = /home/data/folder1/folder2
writeable = yes
valid users = user2
force group = folder2
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
browsable = yes

and I can't have then at the same level...

In fact, what I really need is to control the valid users in each
folder but not in a recursive mode.

best regards,
Felipe

ps:Sorry about any mistake in my poor english :)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] MIT Kerberso or Heimdal Kerberos what is the question?

2005-06-23 Thread Mark Irving
I ran into the same problem also on FreeBSD, although v 5.4. I ran
across this registry hack that fixed it at
http://mailman.mit.edu/pipermail/kerberos/2004-June/005665.html
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 On Behalf Of MIN
 Sent: Thursday, June 23, 2005 1:45 AM
 To: samba@lists.samba.org
 Subject: [Samba] MIT Kerberso or Heimdal Kerberos what is the 
 question?
 
 I have some problem whit Kerberos.
 OS: FreeBSD 5.3
 Domain: W2k3 native mode.
 1)I am Installing Heimdal 0.6.1 over port. Config 
 /etc/krb5.conf %/usr/local/bin/kinit ivan [EMAIL PROTECTED]'s Password: 
 kinit: krb5_get_init_creds: Response too big for UDP, retry 
 with TCP 2)Compile and install  Heimdal 0.6.4 over source 
 %/usr/local/bin/kinit ivan [EMAIL PROTECTED]'s Password: 
 kinit: krb5_get_init_creds: Additional pre-authentication 
 required 3)Install over ports MIT krb5-1.3.4 
 %/usr/local/bin/kinit ivan Password for [EMAIL PROTECTED]: 
 %
 That graet! Mit is working. But not compile Samba. I use 
 Samba.3.0.14a ports. I captured tcp packet. And see that MIT 
 version working over tcp session, but Heimdal version vorking 
 over udp and try over tcp but unseccessfuly. We have many 
 groups in our domain. If i create new user account, and not 
 add this account in many groups all work fine! What should i do?
 We have 2500 users. And some groups in our domain labeled at 
 russian language.
 Thank for help.
 
 
 
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Content violation

2005-06-23 Thread Symantec_AntiVirus_for_SMTP_Gateways
Content violation found in email message.

From: samba@lists.samba.org
To: [EMAIL PROTECTED]


File(s): text.zip

Matching filename: text.zip


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


Re: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin g else?

2005-06-23 Thread AWC Lists

Geoff Scott wrote:

John H Terpstra wrote:


On Wednesday 22 June 2005 22:53, Geoff Scott wrote:




populations IT knowledge!)



In your smb.conf [global] set:

server string = MADMAX

That will stop display of the samba version info. You will have to
clear the connection history from ALL Windows clients - they remember
the old server string and do not refresh it.  


- John T.



Yep, I had a server string in there for a week already.  And did a reload,
but nothing changed.  It's been showing Samba 3.0.7 in the window title
bars for ages even though I've been on 3.0.14a for a while.

So do I completely restart all smbd processes, or do I have to restart every
windows box before the server string (windows title bar) changes?



Regards Geoff Scott


I must apologize that I am causing confusion with my less that clear 
first query.


Ok, I have set server string = ROI Fileserver and that is working.

I will try and post a web page with pictures of what is bugging me 
tonight (at least 12 hours away unfortunately).


In the meantime here is my problem when browsing with Windows XP.

If i connect directly to the Samba server in Windows.  IE:  Set Windows 
explorer to got to:  \\roipdc
The title bar of Windows explorer says:  ROI-Fileserver (roipdc) and 
the page shows all the appropriate shares. So that is good.


However, if I double click on an open share.  (The share is called 
apps in this case.)  The title bar of Windows explorer then says: 
apps on Samba 3.0.14-2 (roipdc)
THAT IS WHAT is bugging me.  I do not want to see Samba 3.0.14-2 here, 
I want to have this set to something else.


Based on comments I added a comment = string to the GLOBAL section. 
Here is the relavent section of the smb.conf file:


[global]
workgroup = mygroup
netbios name = roipdc
server string = ROI Fileserver
comment = ROI Primary Fileserver

I was hoping the comment string would replace the Samba 3.0.14-2 
comment.  I shut down all Windows boxes.  I shut down the Samba 
fileserver.  (Heck I powered off the entire network...)  I then powered 
up the server and then a single windows box.  Yet the Samba 3.0.14-2 
comment is still there.


As I said, I will post screen captures of this tonight onto a webpage 
for review in case my description above is lacking.


Comments or suggestions?

And thank you to everyone posting suggestions.  I have used Samba since 
1997 and love it.  I just want to figure out how to make a small change 
with the way it works with Windows XP to lessen confusion with end 
users.  It is a question that comes up frequently enough lately I 
thought I would ask on the Samba mailing list.


Cheers.

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


RE: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin gelse?

2005-06-23 Thread Paul Gienger
 On 23 Jun 2005, at 16:12, Geoff Scott wrote:
 
  So do I completely restart all smbd processes, or do I have to
  restart every
  windows box before the server string (windows title bar) changes?
 
 Yes and yes.

Actually, I think the correct answer here is no and not even close.

For the server reporting, I think that's one of those things that gets
picked up by the refresh of the config file that happens every couple of
minutes or so.

The real reason I bothered to reply though, is that the windows clients will
hold on to that server string for a LONG time, like forever.  When I
took over sysadmin here, the server's comment was 'samba mania' running like
2.2.0 or something.  A year later, I had gone up to something in the range
of 2.2.8a and re-commented the server to something like 'Fargo server', but
every machine that hadn't been replaced or rebuilt still had ntapps on
samba mainia(fgoserv)(N:) or whatever the format of that line is, as their
drive mappings.  

There is a registry setting someplace that holds this data too, which I
can't find now since every machine here is post the era that had a comment
listed.  There may also be some storage going on in the nethood folder for
your users.

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


RE: [Samba] I NEED LINUX/W2K LAN ASSISTANCE

2005-06-23 Thread Paul Gienger
 I am challenged to bring up a 5 nodes Linux/w2k small LAN and  following
 samba server step by step by Ying Zhang to implement this.

I suggest you follow the official documentation on www.samba.org  It is
anybody's guess what you are looking at now.

 
 inetd.conf that should contain a line like:
 
 swat stream tcp nowait: 400root/user/sbintcp swath

If you're using a recent linux distro, then you are probably using a version
of xinetd, which will need a file created in /etc/xinetd.d/ for the service.
Use the others in there as a template.  Alternatively you could just install
the package for samba, and depending on your distro, which you did not list,
you may have to install swat as a separate package.


 
 is not found at
 
 /etc/
 
 where else can i find it.

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


Re: [Samba] MIT Kerberso or Heimdal Kerberos what is the question?

2005-06-23 Thread Dimitri Yioulos
You might also want to add the following to the [realms] section of your 
krb5.conf:

kdc = tcp/x.x.x.x:88

where x.x.x.x is the ip address of your w2k3 PDC (I use the ip address as 
opposed to the FQDN).

HTH.

Dimitri

On Thursday June 23 2005 8:25 am, Mark Irving wrote:
 I ran into the same problem also on FreeBSD, although v 5.4. I ran
 across this registry hack that fixed it at
 http://mailman.mit.edu/pipermail/kerberos/2004-June/005665.html

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  On Behalf Of MIN
  Sent: Thursday, June 23, 2005 1:45 AM
  To: samba@lists.samba.org
  Subject: [Samba] MIT Kerberso or Heimdal Kerberos what is the
  question?
 
  I have some problem whit Kerberos.
  OS: FreeBSD 5.3
  Domain: W2k3 native mode.
  1)I am Installing Heimdal 0.6.1 over port. Config
  /etc/krb5.conf %/usr/local/bin/kinit ivan [EMAIL PROTECTED]'s Password:
  kinit: krb5_get_init_creds: Response too big for UDP, retry
  with TCP 2)Compile and install  Heimdal 0.6.4 over source
  %/usr/local/bin/kinit ivan [EMAIL PROTECTED]'s Password:
  kinit: krb5_get_init_creds: Additional pre-authentication
  required 3)Install over ports MIT krb5-1.3.4
  %/usr/local/bin/kinit ivan Password for [EMAIL PROTECTED]:
  %
  That graet! Mit is working. But not compile Samba. I use
  Samba.3.0.14a ports. I captured tcp packet. And see that MIT
  version working over tcp session, but Heimdal version vorking
  over udp and try over tcp but unseccessfuly. We have many
  groups in our domain. If i create new user account, and not
  add this account in many groups all work fine! What should i do?
  We have 2500 users. And some groups in our domain labeled at
  russian language.
  Thank for help.
 
 
 
 
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  https://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Empty dir name returned.

2005-06-23 Thread Samba
The problem I am having is since installing Samba 3.0.14a from a previous 
version (3.0.10) I am no longer able to access any of my shares, as the 
contents all appear as a directory with no name this is for both files and true 
directories.  It is one item per file / dir including . and ..

Initally I thought is was down the the client being Windows XP (SP2) but 
smbtorture throws errors (sorry I have not got a record but if specific test 
are needed the I can post the results) also a smbclient returns the same result 
as XP
smb: \ ls
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
  D    0  Fri Jul 22 22:56:30 2005
Empty dir name returned. Possible server misconfiguration.
    37432 blocks of size 524288. 35015 blocks available

If I know the file or dir name I can open these but I just can't list the 
contents.

I have tried reinstalling, default setting, etc but nothing changes, I can't 
find any clues from google searches.

The system is a NSLU2 with openslug 1.2 firmware (kernel 2.6.11.2)
The build was a cross compile on a Gentoo x86 PC using bitbake (openembedded)

I am not sure if this is all the information you need to help me solve this 
problem but I will try to provide any additional information requested.

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


Re: [Samba] Problem Connecting to Samba-OpenLDAP PDC

2005-06-23 Thread Adam Gritt
On 6/23/05, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 Adam Gritt schrieb:
  authconfig/authentication tools to setup authentication but there
  isn't a tool I could find that would do automatic setup of the LDAP
  server, only HTTP, DNS, SMB and NFS.
 
 I don't use Fedora, but maybe you're missing some packet like nss_ldap
 and/or pam_ldap?
 
 --
 Tomek
 WPKG - install software on your Samba clients
 http://wpkg.org
 

I have solved my problem with being able to open the shadow file. 
Turns out that SELinux was still turned on.  I have gotten that fixed.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Documents and pictures SambaXP 2005

2005-06-23 Thread SerNet Samba Team
English version below.

Auf

http://www.sambaxp.org/index.php?id=74

sind ab sofort alle Vorträge der SambaXP 2005 im PDF- und
OGG-Format, sowie zahlreiche Fotos der Konferenz verfügbar.

Viel Spaß damit! :-)

SerNet Samba Team

-
-- www.sambaxp.org -- www.enterprisesamba.com -- www.sernet.de --
-


=

On

http://www.sambaxp.org/index.php?id=74

pdf and ogg files of all talks held at SambaXP 2005 as well as
a lot of pictures of the conference are available.

Have fun! :-)

SerNet Samba Team

-
-- www.sambaxp.org -- www.enterprisesamba.com -- www.sernet.de --
-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Kerberos credentials under multiple AD domains

2005-06-23 Thread [EMAIL PROTECTED]
I 'm having trouble integrating winbind into a multiple active directory
domains environment. 
The machine TCSLSO02 joined successfully the domain BAIRES, realm
BAIRES.TECHINT.NET .

wbinfo -u   works
wbinfo -g   works
net ads testjoin works
wbinfo -t   works

Nevertheless, no command involving others domains works. I can 't list
other domain 's users nor groups. 

wbinfo -m fails with Could not list trusted domains
wbinfo --sequence shows: 

TCSLSO02 : 1
BUILTIN : 1
BAIRES : 61248655
X : DISCONNECTED  (where X is each of the other domains)


I 've tried to debug the problem up to the point where I can 't go any
deeper. I 'd like to be able to go to the source code but it 's just too
much for me. I 'm not up to that level. 

Here 's a snippet of a level 10 log file of winbind. I 've extracted just
one try of one of the domains. This is repeated for each of the other 15
domains: 

[2005/06/23 07:58:36, 10] nsswitch/winbindd_util.c:add_trusted_domains(226)
  Found domain TECHITA
[2005/06/23 07:58:36, 10] nsswitch/winbindd_cache.c:domain_sid(1322)
  domain_sid: [Cached] - doing backend query for info for domain TECHITA
[2005/06/23 07:58:36, 3] nsswitch/winbindd_ads.c:domain_sid(900)
  ads: domain_sid
[2005/06/23 07:58:37, 3] libads/ldap.c:ads_connect(247)
  Connected to LDAP server 172.28.25.1
[2005/06/23 07:58:37, 3] libads/ldap.c:ads_server_info(2432)
  got ldap server name [EMAIL PROTECTED], using bind path:
dc=TECHITA,dc=TECHINT,dc=NET
[2005/06/23 07:58:38, 3] libads/sasl.c:ads_sasl_spnego_bind(204)
  ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2
[2005/06/23 07:58:38, 3] libads/sasl.c:ads_sasl_spnego_bind(204)
  ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2
[2005/06/23 07:58:38, 3] libads/sasl.c:ads_sasl_spnego_bind(204)
  ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3
[2005/06/23 07:58:38, 3] libads/sasl.c:ads_sasl_spnego_bind(204)
  ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10
[2005/06/23 07:58:38, 3] libads/sasl.c:ads_sasl_spnego_bind(211)
  ads_sasl_spnego_bind: got server principal name
[EMAIL PROTECTED]
[2005/06/23 07:58:38, 1] libsmb/clikrb5.c:ads_krb5_mk_req(390)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Server not found in Kerberos database)
[2005/06/23 07:58:38, 1] libsmb/clikrb5.c:ads_krb5_mk_req(390)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Server not found in Kerberos database)
[2005/06/23 07:58:38, 1] nsswitch/winbindd_ads.c:ads_cached_connection(81)
  ads_connect for domain TECHITA failed: Server not found in Kerberos
database


I don 't fully understand if the message Server not found in kerberos
database is meaning the TECHITA server is not recognizing the machine
account TCSLSO02 or if kerberos isn 't able to resolve the
TECHITA.TECHINT.NET realm. I 'm lost. 

This is the environment: 

OS   : Red Hat Enterprise Linux 4
Kerberos : 1.3.4-9  
Samba: 3.0.10-1.4E

Interesting settings in smb.conf: 

   security = ads
   workgroup = BAIRES
   realm = BAIRES.TECHINT.NET
   password server = *

   dns proxy = no
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   winbind use default domain = no


Interesting settings in krb5.conf: 

[libdefaults]
 default_realm = BAIRES.TECHINT.NET
 dns_lookup_realm = true
 dns_lookup_kdc = true
 forwardable = true
 proxiable = true

[realms]
  # empty (uses dns lookups)

[domain_realm]
  # empty (uses dns lookups)

TIA, 

Martin 






mail2web - Check your email from the web at
http://mail2web.com/ .


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


[Samba] Problems with connecting from Windows XP PC

2005-06-23 Thread Bell, Edward
I am having a few problems and hope someone can offer some advice. I have set 
up SAMBA on a new Debian server connected to two XP workstations. Neither XP 
workstation will authenticate with the server. I have followed the 'How to 
Install and Test SAMBA' instructions, but cannot run smbclient -L server_name 
as required in the third test, I get the response 'command not found'.

Having just downloaded the distribution, I believe I am using the latest 
version of SAMBA, I am running version 3.0.14a-3 according to package manager 
in KDE.

When using {c:\ net use e: \\servername\service} I get invalid username or 
password, I have checked that both machines are on the same workgroup and have 
added the user on XP to the server with the same password. I can see nothing 
obviously wrong with smv.conf, and have followed the advice in the how-to.

Regards

Edward Bell



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


Re: [Samba] Problem: 'force user' + 'force group' don't work fine?

2005-06-23 Thread Michael Gasch

Orlandini, Max wrote:

I'm newbe on Linux and I have this problem for you:

Samba 3.0.14a (but 3.0.20pre1 also) work fine with AD users
authentication on linux (Fedora 3) machine.

I have on the root (/) the directory 'test' with permission dr-xrwx---,
owner 'pippo' group 'smbusers'

there is the problem:
if everybody is forced to user pippo, write access is denied, because 
user rights overwrite group rights


greez

--
Michael Gasch
Max Planck Institute for Evolutionary Anthropology
Department of Human Evolution
Deutscher Platz 6
D-04103 Leipzig
Germany

Phone: 49 (0)341 - 3550 137
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Windows 2003 AD users not found

2005-06-23 Thread Joseph Preston Schmigel (RIT Student)
I implemented the change to my smb.conf last night and it is now lunch time and 
I have to get any phone calls complaining about server being unaccessable which 
means the problem has been fixed.  Thank you very much.


-Original Message-
From: Kyle Johnson [mailto:[EMAIL PROTECTED]
Sent: Wed 6/22/2005 5:58 PM
To: Herb Lewis
Cc: Joseph Preston Schmigel (RIT Student); samba@lists.samba.org
Subject: Re: [Samba] Windows 2003 AD users not found
 
Herb Lewis wrote:

 try setting the following in your smb.conf file - it made
 wbinfo behave for me

 client schannel = No

 Kyle Johnson wrote:

 Joseph Preston Schmigel (RIT Student) wrote:

 I recently changed from Windows 2000 native active directory mode to
 Windows 2003  active directory mode.  When I did that, users could no
 long connect to any of the Samba shares.  They were prompted for a
 username and password.  The following error was logged in the winbind
 log:

 [2005/06/22 14:38:46, 1]
 nsswitch/winbindd_user.c:winbindd_getpwnam(161)
  user 'John' does not exist

 The user John does exist in the active directory.  I ran getent passwd
 to see if the user John was listed and indeed he was.  I then tried
 accessing the share again and it worked fine.  A little bit later, it
 stopped working again.  I found out that by running getent passwd,
 shares are accessaable for a short period of time but then the users
 are not found again by Samba until I run getent passwd again.

 Version Info:
 krb5: 1.2.7
 samba: 3.0.9

 smb.conf:
 [global]
workgroup = 40SERVER1
realm = ascad.insideasc.com
password server = bethe.ascad.insideasc.com
server string =
security = ADS
encrypt passwords = yes
log file = /var/log/samba/%m.log
dns proxy = no
wins server = 10.0.0.53 10.0.0.62
idmap uid = 1-2
idmap gid = 1-2
winbind separator = #
 #shares...

 I appreciate any help.  Thank you.


  

 I have the same problem. I have a Windows 2003 ADS as well.  I run 
 getent passwd every minute from a cron job.  It works OK .

 RHEL 4 ES  64bit
 samba 3.0.10-1.4E
 krb5 1.3.4-12


 Kyle
 .


I made the change and restarted Samba and Winbind.  I have not had a 
problem since. 

Thanks for the help

Kyle


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


Re: [Samba] smbclient fails to list directory 36 entries

2005-06-23 Thread Jeremy Allison
On Thu, Jun 23, 2005 at 09:30:17AM +0100, Shaun Lowry wrote:
 Hi all,
 
 I have a problem with smbclient from the samba-client-3.0.14a-2 package 
 supplied with Fedora Core 2.  It hangs when listing any directory with 
 over 36 items in it on one particular Windows XP Professional box I'm 
 trying to back up.  If I run smbclient -d 3, I get the following output 
 over and over when listing the directory:
 
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 received 36 entries (eos=0)
 
 Anyone got any clues what might be wrong here?

This is a bug we fixed when listing files from an exported
drive using a FAT filesystem. Try the 3.0.20 pre-release, the
bug is fixed there.

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


R: [Samba] Problem: 'force user' + 'force group' don't work fine?

2005-06-23 Thread Orlandini, Max
user rights overwrite group rights
??? why? is a samba feature?

Patiently, Rodrigo Saverio (again many thanks) illuminate me:

[...]somewhere in 
Samba's documentation (I can't remember where at all) it is explained 
that the Unix owner write permission is mapped to the ReadOnly flag 
present in Windows by Samba so if you set a file without owner's write 
permission, it is read-only for everybody. By design, not by bugness.

I bet this isn't exactly the piece of information you wanted but at 
least with it you will be able to move on to other solutions for your 
problem.


Regards,

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


Re: [Samba] I NEED LINUX/W2K LAN ASSISTANCE

2005-06-23 Thread JV171Seis
 
In a message dated 6/23/2005 2:09:42 PM W. Central Africa Standard T,  
[EMAIL PROTECTED] writes:

 I  am challenged to bring up a 5 nodes Linux/w2k small LAN and   following
 samba server step by step by Ying Zhang to implement  this.

I suggest you follow the official documentation on  www.samba.org  It is
anybody's guess what you are looking at  now.


 inetd.conf that should contain a line like:
  
 swat stream tcp nowait: 400root/user/sbintcp swath

If you're  using a recent linux distro, then you are probably using a version
of  xinetd, which will need a file created in /etc/xinetd.d/ for the  service.
Use the others in there as a template.  Alternatively you  could just install
the package for samba, and depending on your distro,  which you did not list,
you may have to install swat as a separate  package.



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


[Samba] Followup: Samba and Tiger and Plaintext PW's fixed in 10.4.2

2005-06-23 Thread Elizabeth Schwartz
We downloaded the developer build and Apple has fixed this in 10.4.2,
so Tiger users can use Samba plaintext passwords. (I know we still
need to switch to encrypted, but at least now people can continue to
work)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] smbclient fails to list directory 36 entries

2005-06-23 Thread Tony Earnshaw
tor, 23.06.2005 kl. 17.58 skrev Jeremy Allison:

  I have a problem with smbclient from the samba-client-3.0.14a-2 package 
  supplied with Fedora Core 2.  It hangs when listing any directory with 
  over 36 items in it on one particular Windows XP Professional box I'm 
  trying to back up.  If I run smbclient -d 3, I get the following output 
  over and over when listing the directory:
  
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  received 36 entries (eos=0)
  
  Anyone got any clues what might be wrong here?
 
 This is a bug we fixed when listing files from an exported
 drive using a FAT filesystem. Try the 3.0.20 pre-release, the
 bug is fixed there.

Or, alternatively (no way you'd get me onto a Samba pre-release) OP
could apply the patch (attached) you yourself gave on 7-04-05 and which
works for our sites on 3.0.14a.

Best,

--Tonni

-- 
mail: [EMAIL PROTECTED]
http://www.billy.demon.nl

--- smbd/dir.c  2005-03-23 12:30:27.0 -0800
+++ /home/jeremy/src/samba3.0/source/smbd/dir.c 2005-04-06 18:57:46.157484483 
-0700
@@ -602,7 +603,7 @@
return False;
}
 
-   while (SearchDir(dptr-dir_hnd, name, poffset) == True) {
+   if (SearchDir(dptr-dir_hnd, name, poffset)) {
if (is_visible_file(dptr-conn, dptr-path, name, pst, True)) {
return True;
}
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] I NEED LINUX/W2K LAN ASSISTANCE

2005-06-23 Thread marksarria
I recommend you purchase  The Official Samba -3 , Howto and Reference 
Guide ,by Terpstra

Mark Sarria

- Original Message -
From: [EMAIL PROTECTED]
Date: Thursday, June 23, 2005 4:26 am
Subject: [Samba] I NEED LINUX/W2K LAN ASSISTANCE

 I am challenged to bring up a 5 nodes Linux/w2k small LAN and  
 following 
 samba server step by step by Ying Zhang to implement this.
 
 inetd.conf that should contain a line like:
 
 swat stream tcp nowait: 400root/user/sbintcp swath 
 
 is not found at
 
 /etc/
 
 where else can i find it.
 
 Francis Boro
 Nigeria
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Redundant DFS via DNS entries?

2005-06-23 Thread William Burns

Hi:

I'm trying to create a group of samba/NFS servers.
The NIS/NFS/Automount part has always worked fine. Now I'm trying to 
duplicate what automount does w/ DFS.
A single DFS server would be a single point of failure. I need redundant 
DFS.


I've configured a pair of samba servers, w/ DFS on each one. Each 
machine has a few non-dfs shares referred to by dfs links.
I've configured two DNS A records, pointing smbnfs.my.domain to *both* 
IP addresses of these two machines.


Testing confirms that if one of the two machines goes down, after about 
a 15-sec timeout, the Win'XP clients will figure it out and switch to 
the other server. This means that if a single machine goes down, the DFS 
links will still be available. Also, I would still be able to use DFS to 
redirect client machines to a new SAMBA server without remapping drives.


My problem is that DFS services under this DNS alias appear to be flakey.
Sometimes the DFS links work fine. Other times, the DFS links stop 
working, and if (w/ the XP client) I get right-click/properties on those 
folder/links at those times, the DFS tab does not appear under the 
folder's properties box.
Other times, if I look at the DFS properties of a link, the name of the 
DFS server alias appears instead of the name of the back-end server 
that's listed in the msdfs links. (smbnfs.my.domain appears instead of 
server1.my.domain)


How can I make the redundant DFS system work?
Or... What other methods could be used to give me SAMBA based redundant 
DFS services?


-Bill

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


[Samba] Winbind doesn't reconnect to DC after disconnect

2005-06-23 Thread mtsai
If either the domain member or the domain controller causes the 
connection to break, winbind doesn't reconnect to the controller 
afterwards so authentication doesn't work properly.


For more information, what I basically get is the following:

- Connect to the domain controller -- everything works fine.
- either reboot the domain member or domain controller
- when whichever comes back up, the connection is broken and 
authentication doesn't work


Also, after rebooting, wbinfo -t results in the following:

checking the trust secret via RPC calls failed
error code was NT_STATUS_INVALID_COMPUTER_NAME (0xc122)
Could not check secret

Also, while the domain controller is down, I do get an error code 
telling me that the domain controller is not there instead of

invalid computer name.

Restarting the winbind daemon fixes it all. Is there a way for winbind 
to automatically notice the disconnect and then reattempt to connect 
when say.. the client finds the domain controller again?


Thanks,
Margaret

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


Re: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin gelse?

2005-06-23 Thread AWC Lists

Paul Gienger wrote:

On 23 Jun 2005, at 16:12, Geoff Scott wrote:



So do I completely restart all smbd processes, or do I have to
restart every
windows box before the server string (windows title bar) changes?


Yes and yes.



Actually, I think the correct answer here is no and not even close.

For the server reporting, I think that's one of those things that gets
picked up by the refresh of the config file that happens every couple of
minutes or so.

The real reason I bothered to reply though, is that the windows clients will
hold on to that server string for a LONG time, like forever.  When I
took over sysadmin here, the server's comment was 'samba mania' running like
2.2.0 or something.  A year later, I had gone up to something in the range
of 2.2.8a and re-commented the server to something like 'Fargo server', but
every machine that hadn't been replaced or rebuilt still had ntapps on
samba mainia(fgoserv)(N:) or whatever the format of that line is, as their
drive mappings.  



I'll second that.  I just tried connecting to the server in question 
with a machine that had never connected to the samba server yet.  When I 
browse the shares and such, the server name is correctly listed when 
browsing as ROI Fileserver (ie:  server string = ROI Fileserver) even 
when browsing shares.


BUT, the machine that has already connected to the samba server 
continues to say Samba 3.0.14-2 even after shutting down the entire 
network (including samba server).  So for some reason the new server 
string is not being picked up by the first Windows XP SP2 machine - it 
just merrily uses what it read the first time apparently forever.


I am unsure if this is a Windows issue or a Samba issue, but it is a 
definite condition that I can replicate on Windows XP SP2.  For fun, I 
changed the server string entry again, and the 2nd machine (that 
picked up the new server string when it was originally connected to the 
server for the first time) now refuses to pickup the new server string 
entry.


So from what I can tell, only newly deployed machines or reimaged 
machines will pickup any server string = changes.  Machines already 
connected will not pickup this change.


I'm happy to provide more information about my setup if that would be 
helpful in trying to determine what is happening here.


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


[Samba] Error Redhat ES 3.0

2005-06-23 Thread Lennart Andersen
Hi,

Can anyone help me with this one

### LogWatch 4.3.2 (02/18/03) =20
   Processing Initiated: Wed Jun 22 04:02:00 2005
   Date Range Processed: yesterday
 Detail Level of Output: 0
  Logfiles for Host: inchgapp
 =20

 - Kernel Begin =20

WARNING:  Kernel Errors Present
   smb_get_length: recv error =3D 5...:  1Time(s)
   smb_lookup: find //i686 failed, error=3D-5...:  4Time(s)
   smb_lookup: find //libacl.so.1 failed, error=3D-5...:  1Time(s)
   smb_lookup: find //libtermcap.so.2 failed, error=3D-5...:  1Time(s)
   smb_lookup: find //mmx failed, error=3D-5...:  2Time(s)
   smb_lookup: find //tls failed, error=3D-5...:  8Time(s)
   smb_proc_readdir_long: error=3D-5, breaking...:  1Time(s)

 -- Kernel End -=20

Is there a fix for this?

-- 
 Lennart Andersen 
 St Thomas, Ontario
 lennart at rogers dot com
--
  - Debian - when code matters more than commercials
  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] RHEL 4.0 / Samba 3.0.10 Domain Controller

2005-06-23 Thread Max Clark

Hi all,

I have been trying to get my RHEL 4.0 machine to act as a Windows NT 
domain controller so that I can get rid of some old NT 4.0 servers. I 
have the shares and permissions working without issue. The only problem 
is that I cannot get a Windows 2000 workstation to register to the Samba 
domain controller.


I have gone through everything that I can think of, and have gone 
through more than one tutorial/howto to try to get this configured. The 
first problem seems to be that RHEL 4.0 doesn't allow $ in the 
username when useradd is executed. When I create the useraccount and 
then edit the password and shadow files with vipw I still cannot get the 
Windows 2000 machine to join the domain.


For what it's worth I have included the smb.conf in the email. What am I 
missing to get this working?


Thanks in advance,
Max

# Global parameters
[global]
workgroup = NEWDOMAIN
netbios name = Collie
server string = File Server
interfaces = eth0
bind interfaces only = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n 
*Password *changed*

username map = /etc/samba/smbusers
unix password sync = Yes
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139 445
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d 
/dev/null -M -g machines '%u'

shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
logon script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = U:
logon home = \\%L\home\%U
domain logons = Yes
local master = Yes
os level = 33
preferred master = Yes
domain master = Yes
wins support = Yes
utmp = Yes
map acl inherit = Yes
printing = cups
veto oplock files = /*.doc/*.xls/*.mdb/

[IPC$]
path = /tmp
hosts allow = 10.6.0.0/24, 127.0.0.1
hosts deny = 0.0.0.0/0

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] NIS authentication on samba

2005-06-23 Thread Sheikji Nazirudeen
Hello all,
   I am currently using NIS for authentication with clear text
passwords. We would like to move to password encryption. Any ideas
whether NIS would support encrypted password on samba 3.X ? if not what
would be my other options.

Sheikji Nazirudeen
IT Analyst
Syracuse University
315-443-1207
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] NIS authentication on samba

2005-06-23 Thread Ian Dees
Why not use winbind? If that doesn't suit your needs (maybe you need to 
authenticate with both NIS from a UNIX box and Samba from a PDC) then try 
combining them together with LDAP?



From: [EMAIL PROTECTED] on behalf of Sheikji Nazirudeen
Sent: Thu 6/23/2005 2:30 PM
To: samba@lists.samba.org
Subject: [Samba] NIS authentication on samba



Hello all,
   I am currently using NIS for authentication with clear text
passwords. We would like to move to password encryption. Any ideas
whether NIS would support encrypted password on samba 3.X ? if not what
would be my other options.

Sheikji Nazirudeen
IT Analyst
Syracuse University
315-443-1207
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


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


[Samba] CIFS Gigabit Eth - 35MB/sec limit

2005-06-23 Thread SnowBarsik

Hi honorable people!

In self-education purposes only, I would like to ask is 35 Mbytes/sec
bandwidth limitation of SMB/CIFS in Gigabit applications?

I've try read large file (45GB) from server to client's dev/nul and don't
get bandwidth greater than specified...

But, using FTP or NFS I get REAL stable read speed at 80 MB/sec!
Same picture in synthetic TCP tests.

Why while SMB in use network utilization oscillate around 25% and nothing
more?
Is that mean that in 10GbE we get max utilization in 2-5%?

I tested various combination SAMBA server/client, MS server/client - all for
nothing.

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


[Samba] Printers: Fedora + WinXPHome

2005-06-23 Thread Marilyn Justman
I have a network with 1 Linux box (host), 2 Win98 machines, and 1 WinXPHome 
machine. There is a Deskjet attached to the Linux box, and an HPLJ Postscript 
attached to one of the PCs.

Until recently I was running RH7.1 with Samba 2.x and all computers could print 
to both printers (which, obviously, were shared).

I have recently rebuilt the LInux box, and in the process installed Fedora, 
with Samba 3.

Without any changes to the Win98 boxes, both of them succeed in finding and 
printing to both printers JUST FINE.

But the XP Home box now has the following problems:
1-It can see, but can't connect to the network printer (attached to the Linux 
box). AT ALL.
2-It finds the HPLJ fine, and prints to it as a PCL printer just fine, but when 
it sends Postscript (an alternative printer definition), it fails to send the 
postscript prolog, hence printer spews out postscript code.

The latter problem is probably beyond the scope of this group (tbo I'd 
appreciate any insights anyone might happen to have), but the network printer 
problem is squarely here.

What is there in Samba 3 that requires new/different settings in WinXP than 
Samba 2 did?

Additional, maybe useful info:
-my smb.conf has no os line, nor any wins line.
-the XP machine has shown up on some screen as master browser

Many thanks.

Marilyn

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


[Samba] WinXP - Not So Roaming profile

2005-06-23 Thread fabricio bianco abreu
Hi folks,

I am trying to deploy an LDAP based Samba3 PDC, migrated from an old WinNT4
Domain to support roaming profile for new WinXP clients.

But I do not want a full roaming profile. AFAIK WinXP profiles tends to grow. If
 possible, I would like to roam only the desktop settings, and maybe the
navigator (IE or Firefox) configuration.

Another important (I believe) information is that our WinXP is a localized
information - brazilian portuguese - version. The main importance of this fact
is that in the registry the key names are in English, whereas in the filesystem
the folders name are in brazilian portuguese.

I have already succeeded in configure the roaming profile. I am having trouble
in limiting its contents.

In my tests I am trying to roam only the Desktop session of the user profile.

Here is the symptom I am experiencing: when a user logs in WinXP a folder
Desktop is created on his profile directory; when this user logs out WinXP all
other folders (from Ambiente de impressao up to SendTo) that are part of the
profile are created on his profile directory.

What am I missing to achieve this objective: have only the Desktop folder
present on a user profile directory?

In the next lines (long) I have included information so that you know my
environment and have a clue to send me.

As for the samba configuration, 
1. Created and populated a Default User directory under netlogon share with
the following directories: 
-
[EMAIL PROTECTED]:/var/samba/profiles/fabricio# ls -l 
/var/samba/netlogon/Default\ Users
total 234
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Ambiente de impressão
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Ambiente de rede
drwxr-x---  2 root Domain Users 48 2005-06-21 10:23 Configurações locais
drwxr-x---  2 root Domain Users 48 2005-06-21 10:24 Cookies
drwxr-x---  2 root Domain Users 48 2005-06-21 10:23 Dados de aplicativos
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Desktop
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Favoritos
drwxr-x---  3 root Domain Users 80 2005-06-21 10:24 Menu Iniciar
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Meus documentos
drwxr-x---  2 root Domain Users 48 2005-06-21 10:25 Modelos
-rw-r--r--  1 root Domain Users 229376 2005-06-20 16:51 NTUSER.DAT
-rw-r--r--  1 root Domain Users   1024 2005-06-20 16:51 NTUSER.DAT.LOG
drwxr-x---  2 root Domain Users 48 2005-05-20 16:37 Recent
drwxr-x---  2 root Domain Users 48 2005-06-21 10:27 SendTo


2. here is an typical user in the ldap database:

[EMAIL PROTECTED]:~# smbldap-usershow fabricio
dn: uid=fabricio,ou=Users,dc=tcdf,dc=net
objectClass: top,inetOrgPerson,posixAccount,shadowAccount,sambaSamAccount
cn: fabricio
sn: fabricio
uid: fabricio
uidNumber: 10639
gidNumber: 513
loginShell: /bin/bash
gecos: System User
sambaSID: S-1-5-21-162996128-359937467-561332275-2722
sambaPrimaryGroupSID: S-1-5-21-162996128-359937467-561332275-513
displayName: fabricio bianco abreu
description: Administrador do Domino tcdf-master
sambaLogonScript: login.bat
sambaLogonTime: 1118682725
sambaLogoffTime: 1106238911
sambaProfilePath: \\NIPDL08\profile\fabricio
sambaHomeDrive: H:
sambaHomePath: \\NIPDL08\fabricio\.profile
homeDirectory: /home/fabricio
sambaLMPassword: 5602E3F3E86AD1CB81FE6D90B93317CB
sambaAcctFlags: [U]
sambaNTPassword: 2B60D7C84864C848D393509A619D1722
sambaPwdLastSet: 1118872627
sambaPwdMustChange: 1122760627
userPassword: {MD5}z8ANILCzE3FxpQ2SS99TUg==


3. Here is my smb.conf

# Global parameters
[global]
workgroup = TCDF-MASTER
netbios name = NIPDL08
enable privileges = yes
interfaces = 10.20.20.30, 127.0.0.1 
bind interfaces only = yes
username map = /etc/samba/smbusers
server string = %L Samba-LDAP PDC Server %v
security = user
encrypt passwords = true
obey pam restrictions = No
ldap passwd sync = Yes
log level = 2
syslog = 0
log file = /var/log/samba/log.%m
max log size = 10
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = 850
Unix charset = ISO8859-1
logon script = login.bat
logon drive = H:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
passdb backend = ldapsam:ldap://nipdl08.tcdf.net/
ldap admin dn = cn=samba,ou=DSA,dc=tcdf,dc=net
ldap suffix = dc=tcdf,dc=net
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
add user script = /usr/sbin/smbldap-useradd -m %u
ldap delete dn = Yes
delete user script = /usr/sbin/smbldap-userdel %u
add machine script = /usr/sbin/smbldap-useradd -w %u
 

RE: [Samba] NIS authentication on samba

2005-06-23 Thread Sheikji Nazirudeen
I think I am bit confused here. we don't have any Window PDC or BDC we
just authenticate users from our NIS group when they try to map Unix
drives in their Windows systems. 
So would password encryption work with the above setup. I believe the
alternative would be to use ldap

Sheikji Nazirudeen
IT Analyst
Syracuse University
315-443-1207

 Ian Dees [EMAIL PROTECTED] 6/23/2005 3:42:01 PM 
Why not use winbind? If that doesn't suit your needs (maybe you need to
authenticate with both NIS from a UNIX box and Samba from a PDC) then
try combining them together with LDAP?



From: [EMAIL PROTECTED] on behalf
of Sheikji Nazirudeen
Sent: Thu 6/23/2005 2:30 PM
To: samba@lists.samba.org 
Subject: [Samba] NIS authentication on samba



Hello all,
   I am currently using NIS for authentication with clear text
passwords. We would like to move to password encryption. Any ideas
whether NIS would support encrypted password on samba 3.X ? if not
what
would be my other options.

Sheikji Nazirudeen
IT Analyst
Syracuse University
315-443-1207
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba 


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


[Samba] Using more than one passwd program

2005-06-23 Thread lx

Hello Everybody,

i try to use more than the common:

passwd program = /usr/bin/passwd %u

what i try to do is a

passwd program = /usr/bin/passwd %u  /usr/bin/htpasswd 
/location/of/file %u


it works perfect with /usr/bin/passwd...

but i just can´t get it to make an entry to /usr/bin/htpasswd

can someone please help me

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


Re: [Samba] Using more than one passwd program

2005-06-23 Thread Gémes Géza

lx wrote:


Hello Everybody,

i try to use more than the common:

passwd program = /usr/bin/passwd %u

what i try to do is a

passwd program = /usr/bin/passwd %u  /usr/bin/htpasswd 
/location/of/file %u


it works perfect with /usr/bin/passwd...

but i just can´t get it to make an entry to /usr/bin/htpasswd

can someone please help me

best regards
Alex


In that case you might want to write an expect script which would invoke 
/usr/bin/passwd and /usr/bin/htpaswd, and tell your samba, that your 
password program is that script.


Good Luck!

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


[Samba] System Imaging

2005-06-23 Thread Matt Schwartz
I am using Samba 3.0.20pre1 as a DC and I want to know if there is 
something similar to Deep Freeze www.faronics.com (except open source) 
for Linux.  Deep Freeze automatically compares the software installation 
on a client machine to an image on a server.  If the client machine 
differs, the client is automatically synced with the server.  I want to 
achieve this with Samba and a linux tool if possible.


Thanks,
Matt

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


RE: [Samba] How to I change server=[Samba 3.04.14a-2] to somethin gelse?

2005-06-23 Thread Geoff Scott
AWC Lists wrote:
 Paul Gienger wrote:

 The real reason I bothered to reply though, is that the windows
 clients will hold on to that server string for a LONG time, like
 forever.  When I took over sysadmin here, the server's comment was
 'samba mania' running like 2.2.0 or something.  A year later, I had
 gone up to something in the range of 2.2.8a and re-commented the
 server to something like 'Fargo server', but every machine that
 hadn't 
 been replaced or rebuilt still had ntapps on samba
 mainia(fgoserv)(N:) or whatever the format of that line is, as
 their drive mappings. 
 
 
 I'll second that.  I just tried connecting to the server in question
 with a machine that had never connected to the samba server yet. 
 When I browse the shares and such, the server name is correctly
 listed when browsing as ROI Fileserver (ie:  server string = ROI
 Fileserver) even when browsing shares.
 

John T told me that this is a windows issue.  You have to delete the
resource list from the network neighbourhood on each and every box with old
server descritpions, to get rid of all old descriptions.



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] How to I change server=[Samba 3.04.14a-2] to something else?

2005-06-23 Thread Alex Satrapa

On 24 Jun 2005, at 03:59, AWC Lists wrote:

BUT, the machine that has already connected to the samba server  
continues to say Samba 3.0.14-2 even after shutting down the  
entire network (including samba server).  So for some reason the  
new server string is not being picked up by the first Windows XP  
SP2 machine - it just merrily uses what it read the first time  
apparently forever.


All I can contribute is that I made the changes to server string  
and comment for my last message, while watching from a Windows XP  
SP2 workstation. Before I made the changes, the two strings were the  
same (Australian Phenomics Facility), after the changes they were  
different (Mendel (APF) and Australian Phenomics Facility  
respectively). I shut down the Windows XP machine before making the  
changes and started it up after making the changes.


So whatever is causing this persistence of server string and comment  
fields on the Windows XP SP2 machines apparently doesn't apply to my  
Windows XP SP2 workstation. The workstation in question was in my  
workshop, it had just been reinstalled (Windows XP, Microsoft Office  
2003), and it was set up as a workstation in the Samba controlled  
Domain. I was logged on variously as an Administrator and a standard  
user.


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


svn commit: samba-docs r685 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-23 07:09:36 + (Thu, 23 Jun 2005)
New Revision: 685

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

Log:
Updates.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-AccessControls.xml
   trunk/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml


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


Re: svn commit: samba r7844 - in branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3: .

2005-06-23 Thread Simo Sorce
On Thu, 2005-06-23 at 04:26 +, [EMAIL PROTECTED] wrote:
 Author: derrell
 Date: 2005-06-23 04:26:23 + (Thu, 23 Jun 2005)
 New Revision: 7844
 
 WebSVN: 
 http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=7844
 
 Log:
 eliminate superfluous attribute tables

I had exactl the same patch in my queue :-)

Simo.

-- 
Simo Sorce-  [EMAIL PROTECTED]
Samba Team-  http://www.samba.org
Italian Site  -  http://samba.xsec.it


svn commit: samba-docs r686 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-23 07:30:42 + (Thu, 23 Jun 2005)
New Revision: 686

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

Log:
Updates.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-locking.xml


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


svn commit: samba r7845 - in branches/SAMBA_4_0/source: build/smb_build script smbd

2005-06-23 Thread metze
Author: metze
Date: 2005-06-23 15:23:02 + (Thu, 23 Jun 2005)
New Revision: 7845

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

Log:
remove unused files

and remove all generated files with make distclean and make realdistclean

metze
Removed:
   branches/SAMBA_4_0/source/script/build_env.sh
   branches/SAMBA_4_0/source/smbd/build_options.c
Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm


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


svn commit: samba-docs r687 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-23 16:50:19 + (Thu, 23 Jun 2005)
New Revision: 687

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

Log:
Fix typo.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-CUPS-printing.xml


Changeset:
Modified: trunk/Samba3-HOWTO/TOSHARG-CUPS-printing.xml
===
--- trunk/Samba3-HOWTO/TOSHARG-CUPS-printing.xml2005-06-23 07:30:42 UTC 
(rev 686)
+++ trunk/Samba3-HOWTO/TOSHARG-CUPS-printing.xml2005-06-23 16:50:19 UTC 
(rev 687)
@@ -1996,7 +1996,7 @@
 support, and if no other print commands are set up, then printing will use the 
emphasisSystem V/emphasis
 ATamp;T command set, with the -oraw option automatically passing through (if 
you want your own defined print
 commands to work with a Samba server that has CUPS support compiled in, simply 
use smbconfoption
-name=printingsysv/smbconfoption). This is illustrated in link 
linkend=13smallthe Printing via
+name=classicalprintingsysv/smbconfoption). This is illustrated in link 
linkend=13smallthe Printing via
 CUPS/Samba Server diagram/link.
 /para
 



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

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 17:00:11 + (Thu, 23 Jun 2005)
New Revision: 7846

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

Log:
Fix from [EMAIL PROTECTED] Kevin Jamieson - typo
in checking for .. in statcache. Bugid #2819.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/statcache.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/statcache.c
===
--- branches/SAMBA_3_0/source/smbd/statcache.c  2005-06-23 15:23:02 UTC (rev 
7845)
+++ branches/SAMBA_3_0/source/smbd/statcache.c  2005-06-23 17:00:11 UTC (rev 
7846)
@@ -64,7 +64,7 @@
 
if((*full_orig_name == '\0') || (full_orig_name[0] == '.'  
((full_orig_name[1] == '\0') ||
-(full_orig_name[1] == '.'  full_orig_name[1] 
== '\0'
+(full_orig_name[1] == '.'  full_orig_name[2] 
== '\0'
return;
 
/*



svn commit: samba r7847 - in trunk/source/smbd: .

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 17:00:36 + (Thu, 23 Jun 2005)
New Revision: 7847

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

Log:
Fix from [EMAIL PROTECTED] Kevin Jamieson - typo
in checking for .. in statcache. Bugid #2819.
Jeremy.

Modified:
   trunk/source/smbd/statcache.c


Changeset:
Modified: trunk/source/smbd/statcache.c
===
--- trunk/source/smbd/statcache.c   2005-06-23 17:00:11 UTC (rev 7846)
+++ trunk/source/smbd/statcache.c   2005-06-23 17:00:36 UTC (rev 7847)
@@ -64,7 +64,7 @@
 
if((*full_orig_name == '\0') || (full_orig_name[0] == '.'  
((full_orig_name[1] == '\0') ||
-(full_orig_name[1] == '.'  full_orig_name[1] 
== '\0'
+(full_orig_name[1] == '.'  full_orig_name[2] 
== '\0'
return;
 
/*



svn commit: samba-docs r688 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-23 21:27:46 + (Thu, 23 Jun 2005)
New Revision: 688

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

Log:
Update.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml
   trunk/Samba3-HOWTO/TOSHARG-Securing.xml
   trunk/Samba3-HOWTO/TOSHARG-locking.xml


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


svn commit: samba r7848 - in trunk/source/utils: .

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 22:20:34 + (Thu, 23 Jun 2005)
New Revision: 7848

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

Log:
Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy.

Modified:
   trunk/source/utils/net_rpc.c


Changeset:
Modified: trunk/source/utils/net_rpc.c
===
--- trunk/source/utils/net_rpc.c2005-06-23 17:00:36 UTC (rev 7847)
+++ trunk/source/utils/net_rpc.c2005-06-23 22:20:34 UTC (rev 7848)
@@ -3374,6 +3374,7 @@
 
char mode = NET_MODE_SHARE_MIGRATE;
argv[argc++] = mode;
+   argv[argc] = NULL;
 
return net_run_function(argc, argv, func, rpc_share_usage);
 }



svn commit: samba r7849 - in branches/SAMBA_3_0/source/utils: .

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 22:20:37 + (Thu, 23 Jun 2005)
New Revision: 7849

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

Log:
Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc.c   2005-06-23 22:20:34 UTC (rev 
7848)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c   2005-06-23 22:20:37 UTC (rev 
7849)
@@ -3374,6 +3374,7 @@
 
char mode = NET_MODE_SHARE_MIGRATE;
argv[argc++] = mode;
+   argv[argc] = NULL;
 
return net_run_function(argc, argv, func, rpc_share_usage);
 }



svn commit: samba r7850 - in branches/SAMBA_4_0/source: . include/system lib lib/messaging lib/replace ntvfs/posix ntvfs/simple rpc_server winbind

2005-06-23 Thread jelmer
Author: jelmer
Date: 2005-06-23 22:30:26 + (Thu, 23 Jun 2005)
New Revision: 7850

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

Log:
Support mkdir() with just one parameter. Patch from 
Steven Edwards [EMAIL PROTECTED]. 

I've moved the Win32-specific tests to win32.m4 so it does not 
make any of the POSIX configure stuff more complicated.


Added:
   branches/SAMBA_4_0/source/lib/replace/win32.m4
Modified:
   branches/SAMBA_4_0/source/configure.in
   branches/SAMBA_4_0/source/include/system/dir.h
   branches/SAMBA_4_0/source/lib/messaging/messaging.c
   branches/SAMBA_4_0/source/lib/util.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
   branches/SAMBA_4_0/source/ntvfs/simple/vfs_simple.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c
   branches/SAMBA_4_0/source/winbind/wb_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/configure.in
===
--- branches/SAMBA_4_0/source/configure.in  2005-06-23 22:20:37 UTC (rev 
7849)
+++ branches/SAMBA_4_0/source/configure.in  2005-06-23 22:30:26 UTC (rev 
7850)
@@ -9,6 +9,7 @@
 
 sinclude(build/m4/env.m4)
 sinclude(build/m4/rewrite.m4)
+sinclude(lib/replace/win32.m4)
 sinclude(heimdal_build/config.m4)
 sinclude(lib/popt/config.m4)
 sinclude(lib/iconv.m4)

Modified: branches/SAMBA_4_0/source/include/system/dir.h
===
--- branches/SAMBA_4_0/source/include/system/dir.h  2005-06-23 22:20:37 UTC 
(rev 7849)
+++ branches/SAMBA_4_0/source/include/system/dir.h  2005-06-23 22:30:26 UTC 
(rev 7850)
@@ -37,3 +37,6 @@
 # endif
 #endif
 
+#ifndef HAVE_MKDIR_MODE
+#define mkdir(dir, mode) mkdir(dir)
+#endif

Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c
===
--- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-06-23 22:20:37 UTC 
(rev 7849)
+++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2005-06-23 22:30:26 UTC 
(rev 7850)
@@ -22,6 +22,7 @@
 
 #include includes.h
 #include lib/events/events.h
+#include system/dir.h
 #include system/filesys.h
 #include system/time.h
 #include messages.h

Added: branches/SAMBA_4_0/source/lib/replace/win32.m4
===
--- branches/SAMBA_4_0/source/lib/replace/win32.m4  2005-06-23 22:20:37 UTC 
(rev 7849)
+++ branches/SAMBA_4_0/source/lib/replace/win32.m4  2005-06-23 22:30:26 UTC 
(rev 7850)
@@ -0,0 +1,20 @@
+AC_CHECK_HEADERS(direct.h)
+
+###
+# Check for mkdir mode
+AC_CACHE_CHECK( [whether mkdir supports mode], ac_mkdir_has_mode,
+   AC_TRY_COMPILE([
+   #include stdio.h
+   #ifdef HAVE_DIRECT_H
+   #include direct.h
+   #endif],[
+   mkdir(foo,0777);
+   return 0;
+   ],
+ac_mkdir_has_mode=yes,
+ac_mkdir_has_mode=no) )
+
+if test $ac_mkdir_has_mode = yes
+then
+AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode 
option])
+fi

Modified: branches/SAMBA_4_0/source/lib/util.c
===
--- branches/SAMBA_4_0/source/lib/util.c2005-06-23 22:20:37 UTC (rev 
7849)
+++ branches/SAMBA_4_0/source/lib/util.c2005-06-23 22:30:26 UTC (rev 
7850)
@@ -26,9 +26,10 @@
 #include dynconfig.h
 #include system/network.h
 #include system/iconv.h
+#include system/dir.h
 #include system/filesys.h
 
-/**n
+/***
  Find a suitable temporary directory. The result should be copied immediately
  as it may be overwritten by a subsequent call.
 /

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2005-06-23 22:20:37 UTC 
(rev 7849)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2005-06-23 22:30:26 UTC 
(rev 7850)
@@ -21,6 +21,7 @@
 */
 
 #include includes.h
+#include system/dir.h
 #include vfs_posix.h
 #include librpc/gen_ndr/ndr_security.h
 

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2005-06-23 22:20:37 UTC 
(rev 7849)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2005-06-23 22:30:26 UTC 
(rev 7850)
@@ -22,6 +22,7 @@
 
 #include includes.h
 #include vfs_posix.h
+#include system/dir.h
 #include system/time.h
 #include dlinklist.h
 #include messages.h

Modified: branches/SAMBA_4_0/source/ntvfs/simple/vfs_simple.c

svn commit: samba-docs r689 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-23 22:42:21 + (Thu, 23 Jun 2005)
New Revision: 689

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

Log:
Update.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-InterdomainTrusts.xml
   trunk/Samba3-HOWTO/TOSHARG-msdfs.xml


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


svn commit: samba r7851 - in branches/SAMBA_4_0/source/lib/ldb: common ldb_sqlite3

2005-06-23 Thread idra
Author: idra
Date: 2005-06-23 23:19:31 + (Thu, 23 Jun 2005)
New Revision: 7851

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

Log:

We are case preserving let the DN be returned the same the user put it into.
sss


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c


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


svn commit: samba r7852 - in branches/SAMBA_3_0/source/utils: .

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 23:23:16 + (Thu, 23 Jun 2005)
New Revision: 7852

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

Log:
Correct fix from Lars for the argv issue.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/utils/net.h
   branches/SAMBA_3_0/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net.h
===
--- branches/SAMBA_3_0/source/utils/net.h   2005-06-23 23:19:31 UTC (rev 
7851)
+++ branches/SAMBA_3_0/source/utils/net.h   2005-06-23 23:23:16 UTC (rev 
7852)
@@ -32,7 +32,6 @@
struct cli_state *cli_share_dst;
char *cwd;
uint16 attribute;
-   int mode;
 }copy_clistate; 
 
 /* INCLUDE FILES */

Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc.c   2005-06-23 23:19:31 UTC (rev 
7851)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c   2005-06-23 23:23:16 UTC (rev 
7852)
@@ -22,6 +22,8 @@
 #include includes.h
 #include utils/net.h
 
+static int net_mode_share;
+
 /**
  * @file net_rpc.c
  *
@@ -2940,7 +2942,7 @@
fstrcat(dir, \\);
fstrcat(dir, f-name);
 
-   switch (local_state-mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
/* create that directory */
@@ -2954,7 +2956,7 @@
  False);
break;
default:
-   d_printf(Unsupported mode %d\n, local_state-mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
return;
}
 
@@ -2983,7 +2985,7 @@
 
DEBUG(3,(got file: %s\n, filename));
 
-   switch (local_state-mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
nt_status = net_copy_file(local_state-mem_ctx, 
@@ -2996,7 +2998,7 @@
  True);
break;
default:
-   d_printf(Unsupported file mode %d\n, local_state-mode);
+   d_printf(Unsupported file mode %d\n, net_mode_share);
return;
}
 
@@ -3040,7 +3042,7 @@
 {
NTSTATUS nt_status;
 
-   switch (cp_clistate-mode) {
+   switch (net_mode_share) {
case NET_MODE_SHARE_MIGRATE:
DEBUG(3,(calling net_copy_fileattr for '.' directory in share 
%s\n, sharename));
nt_status = net_copy_fileattr(cp_clistate-mem_ctx,
@@ -3053,7 +3055,7 @@
False);
break;
default:
-   d_printf(Unsupported mode %d\n, cp_clistate-mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
break;
}
 
@@ -3098,9 +3100,6 @@
pstring mask = \\*;
char *dst = NULL;
 
-   /* decrese argc and safe mode */
-   cp_clistate.mode = argv[--argc][0];
-
dst = SMB_STRDUP(opt_destination?opt_destination:127.0.0.1);
 
result = get_share_info(cli, mem_ctx, level, argc, argv, ctr_src);
@@ -3124,13 +3123,13 @@
continue;
}
 
-   switch (cp_clistate.mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
printf(syncing);
break;
default:
-   d_printf(Unsupported mode %d\n, cp_clistate.mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
break;
}
printf([%s] files and directories %s ACLs, %s DOS 
Attributes %s\n, 
@@ -3154,7 +3153,7 @@
 
got_src_share = True;
 
-   if (cp_clistate.mode == NET_MODE_SHARE_MIGRATE) {
+   if (net_mode_share == NET_MODE_SHARE_MIGRATE) {
/* open share destination */
nt_status = 
connect_to_service(cp_clistate.cli_share_dst,
   NULL, dst, netname, 
A:);
@@ -3372,9 +3371,7 @@
{NULL, NULL}
};
 
-   char mode = NET_MODE_SHARE_MIGRATE;
-   argv[argc++] = mode;
-   argv[argc] = NULL;
+   net_mode_share = NET_MODE_SHARE_MIGRATE;
 
return net_run_function(argc, argv, func, rpc_share_usage);
 }



svn commit: samba r7853 - in trunk/source/utils: .

2005-06-23 Thread jra
Author: jra
Date: 2005-06-23 23:23:18 + (Thu, 23 Jun 2005)
New Revision: 7853

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

Log:
Correct fix from Lars for the argv issue.
Jeremy.

Modified:
   trunk/source/utils/net.h
   trunk/source/utils/net_rpc.c


Changeset:
Modified: trunk/source/utils/net.h
===
--- trunk/source/utils/net.h2005-06-23 23:23:16 UTC (rev 7852)
+++ trunk/source/utils/net.h2005-06-23 23:23:18 UTC (rev 7853)
@@ -32,7 +32,6 @@
struct cli_state *cli_share_dst;
char *cwd;
uint16 attribute;
-   int mode;
 }copy_clistate;
 
 /* INCLUDE FILES */

Modified: trunk/source/utils/net_rpc.c
===
--- trunk/source/utils/net_rpc.c2005-06-23 23:23:16 UTC (rev 7852)
+++ trunk/source/utils/net_rpc.c2005-06-23 23:23:18 UTC (rev 7853)
@@ -22,6 +22,8 @@
 #include includes.h
 #include utils/net.h
 
+static int net_mode_share;
+
 /**
  * @file net_rpc.c
  *
@@ -2940,7 +2942,7 @@
fstrcat(dir, \\);
fstrcat(dir, f-name);
 
-   switch (local_state-mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
/* create that directory */
@@ -2954,7 +2956,7 @@
  False);
break;
default:
-   d_printf(Unsupported mode %d\n, local_state-mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
return;
}
 
@@ -2983,7 +2985,7 @@
 
DEBUG(3,(got file: %s\n, filename));
 
-   switch (local_state-mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
nt_status = net_copy_file(local_state-mem_ctx, 
@@ -2996,7 +2998,7 @@
  True);
break;
default:
-   d_printf(Unsupported file mode %d\n, local_state-mode);
+   d_printf(Unsupported file mode %d\n, net_mode_share);
return;
}
 
@@ -3040,7 +3042,7 @@
 {
NTSTATUS nt_status;
 
-   switch (cp_clistate-mode) {
+   switch (net_mode_share) {
case NET_MODE_SHARE_MIGRATE:
DEBUG(3,(calling net_copy_fileattr for '.' directory in share 
%s\n, sharename));
nt_status = net_copy_fileattr(cp_clistate-mem_ctx,
@@ -3053,7 +3055,7 @@
False);
break;
default:
-   d_printf(Unsupported mode %d\n, cp_clistate-mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
break;
}
 
@@ -3098,9 +3100,6 @@
pstring mask = \\*;
char *dst = NULL;
 
-   /* decrese argc and safe mode */
-   cp_clistate.mode = argv[--argc][0];
-
dst = SMB_STRDUP(opt_destination?opt_destination:127.0.0.1);
 
result = get_share_info(cli, mem_ctx, level, argc, argv, ctr_src);
@@ -3124,13 +3123,13 @@
continue;
}
 
-   switch (cp_clistate.mode)
+   switch (net_mode_share)
{
case NET_MODE_SHARE_MIGRATE:
printf(syncing);
break;
default:
-   d_printf(Unsupported mode %d\n, cp_clistate.mode);
+   d_printf(Unsupported mode %d\n, net_mode_share);
break;
}
printf([%s] files and directories %s ACLs, %s DOS 
Attributes %s\n, 
@@ -3154,7 +3153,7 @@
 
got_src_share = True;
 
-   if (cp_clistate.mode == NET_MODE_SHARE_MIGRATE) {
+   if (net_mode_share == NET_MODE_SHARE_MIGRATE) {
/* open share destination */
nt_status = 
connect_to_service(cp_clistate.cli_share_dst,
   NULL, dst, netname, 
A:);
@@ -3372,9 +3371,7 @@
{NULL, NULL}
};
 
-   char mode = NET_MODE_SHARE_MIGRATE;
-   argv[argc++] = mode;
-   argv[argc] = NULL;
+   net_mode_share = NET_MODE_SHARE_MIGRATE;
 
return net_run_function(argc, argv, func, rpc_share_usage);
 }



Build status as of Fri Jun 24 00:00:02 2005

2005-06-23 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2005-06-23 
00:00:14.0 +
+++ /home/build/master/cache/broken_results.txt 2005-06-24 00:00:08.0 
+
@@ -1,24 +1,23 @@
-Build status as of Thu Jun 23 00:00:01 2005
+Build status as of Fri Jun 24 00:00:02 2005
 
 Build counts:
 Tree Total  Broken Panic 
-ccache   39 8  0 
-distcc   39 2  0 
-lorikeet-heimdal 36 11 0 
+ccache   40 9  0 
+distcc   40 3  0 
+lorikeet-heimdal 37 34 0 
 ppp  23 1  0 
-rsync39 1  0 
+rsync40 2  0 
 samba0  0  0 
 samba-docs   0  0  0 
-samba4   39 36 5 
-samba_3_039 11 0 
-talloc   36 18 0 
-tdb  37 37 0 
+samba4   40 36 6 
+samba_3_040 10 0 
+talloc   37 19 0 
+tdb  38 38 0 
 
 Currently broken builds:
 Host   Tree Compiler   Status
 aix1   lorikeet-heimdal gccok/ 2/?/? 
 aix1   samba4   gccok/ 2/?/? 
-aix1   samba_3_0gccok/ 137/?/?
 aix1   talloc   gccok/ok/ 2/?
 aix1   tdb  gccok/ 2/?/? 
 oehmesrs6k ccache   cc ok/ok/ 2/?
@@ -36,25 +35,30 @@
 samba-s390 samba4   gccok/ 2/?/? 
 samba-s390 talloc   gccok/ 2/?/? 
 samba-s390 tdb  gcc 2/?/?/?  
+quango lorikeet-heimdal gccok/ 2/?/? 
 quango samba4   gccok/ok/ok/ 235
 quango tdb  gcc 2/?/?/?  
+superego   lorikeet-heimdal gccok/ 2/?/? 
 superego   samba4   gccok/ok/ok/ 235
 superego   tdb  gcc 2/?/?/?  
-cl012  lorikeet-heimdal gccok/ok/ok/ 2
+cl012  lorikeet-heimdal gccok/ 2/?/? 
 cl012  samba4   gccok/ok/ok/ 1
 cl012  tdb  gcc 2/?/?/?  
 dev4-003   lorikeet-heimdal gccok/ 2/?/? 
 dev4-003   samba4   gccok/ok/ok/ 1
 dev4-003   tdb  gcc 2/?/?/?  
-berks  samba4   gccok/ 137/?/?
+berks  lorikeet-heimdal gccok/ 2/?/? 
 berks  tdb  gcc 2/?/?/?  
+yowiee lorikeet-heimdal gccok/ 2/?/? 
 yowiee samba4   gccok/ok/ok/ 237/PANIC
 yowiee samba_3_0gcc 1/?/?/?  
 yowiee talloc   gccok/ok/ 2/?
 yowiee tdb  gcc 2/?/?/?  
+shelob lorikeet-heimdal gccok/ 2/?/? 
 shelob samba4   gccok/ok/ok/ 2
 shelob tdb  gcc 2/?/?/?  
 shelob ccache   iccok/ok/ok/ 2
+shelob lorikeet-heimdal iccok/ 2/?/? 
 shelob samba4   iccok/ok/ok/ 237/PANIC
 shelob samba_3_0iccok/ 2/?/? 
 shelob tdb  icc 2/?/?/?  
@@ -66,8 +70,9 @@
 gc4samba4   gccok/ok/ 1/?
 gc4talloc   gccok/ok/ 2/?
 gc4tdb  gcc 2/?/?/?  
-manhattan  samba4   cc ok/ok/ 1/?
+manhattan  samba4   cc ok/ 2/?/? 
 sbfccache   gccok/ 1/?/? 
+sbflorikeet-heimdal gccok/ 1/?/? 
 sbfsamba4   gccok/ 2/?/? 
 sbftalloc   gccok/ok/ 2/?
 sbftdb  gcc 2/?/?/?  
@@ -76,35 +81,51 @@
 aretnaptalloc   gccok/ok/ 2/?
 aretnaptdb  gcc 2/?/?/?  
 aretnapccache   iccok/ 1/?/? 
+aretnaplorikeet-heimdal iccok/ 1/?/? 
 aretnapsamba4   iccok/ 2/?/? 
-aretnapsamba_3_0iccok/ 137/?/?
 aretnaptalloc   iccok/ok/ 2/?
 aretnaptdb  icc 2/?/?/?  
+aretnapccache   icc-9  ok/ 1/?/? 
+aretnapdistcc   icc-9  ok/ 1/?/? 
+aretnaplorikeet-heimdal icc-9  ok/ 1/?/? 
+aretnaprsyncicc-9  ok/ 1/?/? 
+aretnapsamba4   icc-9  ok/ 2/?/? 
+aretnapsamba_3_0icc-9  ok/ 1/?/? 
+aretnaptalloc   icc-9  ok/ok/ 2/?
+aretnaptdb  icc-9   2/?/?/?  
 smartserv1 ccache   gccok/ 1/?/? 
+smartserv1 lorikeet-heimdal gccok/ 1/?/? 
 smartserv1 samba4   gccok/ 2/?/? 
 smartserv1 samba_3_0gcc

svn commit: samba r7854 - in branches/SAMBA_4_0/source/ldap_server: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:03:17 + (Fri, 24 Jun 2005)
New Revision: 7854

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

Log:
only enable wrapping in the ldap server if it was negotiated by gensec

Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_bind.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_bind.c
===
--- branches/SAMBA_4_0/source/ldap_server/ldap_bind.c   2005-06-23 23:23:18 UTC 
(rev 7853)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_bind.c   2005-06-24 00:03:17 UTC 
(rev 7854)
@@ -74,7 +74,6 @@
 
gensec_want_feature(call-conn-gensec, GENSEC_FEATURE_SIGN);
gensec_want_feature(call-conn-gensec, GENSEC_FEATURE_SEAL);
-   
 
status = gensec_start_mech_by_sasl_name(call-conn-gensec, 
req-creds.SASL.mechanism);
if (!NT_STATUS_IS_OK(status)) {
@@ -104,7 +103,10 @@
} else if (NT_STATUS_IS_OK(status)) {
result = LDAP_SUCCESS;
errstr = NULL;
-   call-conn-enable_wrap = True;
+   if (gensec_have_feature(call-conn-gensec, 
GENSEC_FEATURE_SEAL) ||
+   gensec_have_feature(call-conn-gensec, 
GENSEC_FEATURE_SIGN)) {
+   call-conn-enable_wrap = True;
+   }
} else {
result = 49;
errstr = talloc_asprintf(reply, SASL:[%s]: %s, 
req-creds.SASL.mechanism, nt_errstr(status));



svn commit: samba r7855 - in branches/SAMBA_4_0/source/libcli/ldap: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:03:47 + (Fri, 24 Jun 2005)
New Revision: 7855

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

Log:
fixed a typo


Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap_bind.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_bind.c
===
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_bind.c   2005-06-24 00:03:17 UTC 
(rev 7854)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_bind.c   2005-06-24 00:03:47 UTC 
(rev 7855)
@@ -234,7 +234,7 @@
}
 
if (NT_STATUS_IS_OK(status) 
-   (gensec_have_feature(conn-gensec, GENSEC_FEATURE_SIGN) ||
+   (gensec_have_feature(conn-gensec, GENSEC_FEATURE_SEAL) ||
 gensec_have_feature(conn-gensec, GENSEC_FEATURE_SIGN))) {
conn-enable_wrap = True;
}



svn commit: samba r7856 - in branches/SAMBA_4_0/source/libcli/resolve: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:04:26 + (Fri, 24 Jun 2005)
New Revision: 7856

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

Log:
fixed warning of 'methods' shadowed variable

Modified:
   branches/SAMBA_4_0/source/libcli/resolve/resolve.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/resolve/resolve.c
===
--- branches/SAMBA_4_0/source/libcli/resolve/resolve.c  2005-06-24 00:03:47 UTC 
(rev 7855)
+++ branches/SAMBA_4_0/source/libcli/resolve/resolve.c  2005-06-24 00:04:26 UTC 
(rev 7856)
@@ -40,7 +40,7 @@
struct composite_context *(*send_fn)(struct nbt_name *, struct 
event_context *);
NTSTATUS (*recv_fn)(struct composite_context *, TALLOC_CTX *, const 
char **);
 
-} methods[] = {
+} resolve_methods[] = {
{ bcast, resolve_name_bcast_send,  resolve_name_bcast_recv },
{ wins,  resolve_name_wins_send,   resolve_name_wins_recv },
{ host,  resolve_name_host_send,   resolve_name_host_recv }
@@ -54,9 +54,9 @@
 {
int i;
if (name == NULL) return NULL;
-   for (i=0;iARRAY_SIZE(methods);i++) {
-   if (strcasecmp(name, methods[i].name) == 0) {
-   return methods[i];
+   for (i=0;iARRAY_SIZE(resolve_methods);i++) {
+   if (strcasecmp(name, resolve_methods[i].name) == 0) {
+   return resolve_methods[i];
}
}
return NULL;



svn commit: samba r7857 - in branches/SAMBA_4_0/source/smb_server: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:05:41 + (Fri, 24 Jun 2005)
New Revision: 7857

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

Log:
improved the handling of end-of-file on sockets in the smb server


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


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c
===
--- branches/SAMBA_4_0/source/smb_server/smb_server.c   2005-06-24 00:04:26 UTC 
(rev 7856)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c   2005-06-24 00:05:41 UTC 
(rev 7857)
@@ -101,9 +101,12 @@
if (NT_STATUS_IS_ERR(status)) {
return status;
}
-   if (nread == 0) {
+   if (!NT_STATUS_IS_OK(status)) {
return NT_STATUS_OK;
}
+   if (nread == 0) {
+   return NT_STATUS_END_OF_FILE;
+   }
req-in.size += nread;
 
/* when we have a full NBT header, then allocate the packet */
@@ -129,9 +132,12 @@
if (NT_STATUS_IS_ERR(status)) {
return status;
}
-   if (nread == 0) {
+   if (!NT_STATUS_IS_OK(status)) {
return NT_STATUS_OK;
}
+   if (nread == 0) {
+   return NT_STATUS_END_OF_FILE;
+   }
 
req-in.size += nread;
 



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

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:06:04 + (Fri, 24 Jun 2005)
New Revision: 7858

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

Log:
removed some unused variables



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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_lookup.c
===
--- branches/SAMBA_4_0/source/torture/libnet/libnet_lookup.c2005-06-24 
00:05:41 UTC (rev 7857)
+++ branches/SAMBA_4_0/source/torture/libnet/libnet_lookup.c2005-06-24 
00:06:04 UTC (rev 7858)
@@ -32,7 +32,6 @@
TALLOC_CTX *mem_ctx;
struct libnet_Lookup lookup;
const char address[16];
-   const char** methods = lp_name_resolve_order();
 
mem_ctx = talloc_init(test_lookup);
 
@@ -58,7 +57,6 @@
TALLOC_CTX *mem_ctx;
struct libnet_Lookup lookup;
const char address[16];
-   const char** methods = lp_name_resolve_order();
 
mem_ctx = talloc_init(test_lookup_host);
 
@@ -83,7 +81,6 @@
TALLOC_CTX *mem_ctx;
struct libnet_Lookup lookup;
const char address[16];
-   const char** methods = lp_name_resolve_order();
 
mem_ctx = talloc_init(test_lookup_pdc);
 



svn commit: samba r7859 - in branches/SAMBA_4_0/source/script: .

2005-06-23 Thread jelmer
Author: jelmer
Date: 2005-06-24 00:07:04 + (Fri, 24 Jun 2005)
New Revision: 7859

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

Log:
Merge a few scripts to one script that checks for the following unused 
(used in configure.in, but their output is never used) autoconf macros:
- AC_DEFINE
- AC_CHECK_FUNC
- AC_CHECK_FUNCS
- AC_CHECK_HEADER
- AC_CHECK_HEADERS

Added:
   branches/SAMBA_4_0/source/script/configure_check_unused.pl
Removed:
   branches/SAMBA_4_0/source/script/find_unused_defines.pl
   branches/SAMBA_4_0/source/script/find_unused_function_checks.pl
   branches/SAMBA_4_0/source/script/find_unused_header_checks.pl
Modified:
   branches/SAMBA_4_0/source/script/find_missing_doc.pl
   branches/SAMBA_4_0/source/script/find_unused_macros.pl
   branches/SAMBA_4_0/source/script/find_unused_makefilevars.pl
   branches/SAMBA_4_0/source/script/find_unused_options.sh
   branches/SAMBA_4_0/source/script/mkproto.pl


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


svn commit: samba r7860 - in branches/SAMBA_4_0/source: auth dsdb/samdb dsdb/samdb/ldb_modules lib lib/ldb lib/ldb/samba libcli/ldap ntvfs/common rpc_server/lsa rpc_server/netlogon rpc_server/samr setup

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 00:18:20 + (Fri, 24 Jun 2005)
New Revision: 7860

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

Log:
switch our ldb storage format to use a NDR encoded objectSid. This is
quite a large change as we had lots of code that assumed that
objectSid was a string in S- format. 

metze and simo tried to convince me to use NDR format months ago, but
I didn't listen, so its fair that I have the pain of fixing all the
code now :-)

This builds on the ldb_register_samba_handlers() and ldif handlers
code I did earlier this week. There are still three parts of this
conversion I have not finished:

 - the ltdb index records need to use the string form of the objectSid
   (to keep the DNs sane). Until that it done I have disabled indexing on
   objectSid, which is a big performance hit, but allows us to pass
   all our tests while I rejig the indexing system to use a externally
   supplied conversion function

 - I haven't yet put in place the code that allows client to use the
   S-xxx-yyy form for objectSid in ldap search expressions. w2k3
   supports this, presumably by looking for the S- prefix to
   determine what type of objectSid form is being used by the client. I
   have been working on ways to handle this, but am not happy with
   them yet so they aren't part of this patch

 - I need to change pidl to generate push functions that take a 
   const void * instead of a void* for the data pointer. That will
   fix the couple of new warnings this code generates.

Luckily it many places the conversion to NDR formatted records
actually simplified the code, as it means we no longer need as many
calls to dom_sid_parse_talloc(). In some places it got more complex,
but not many.

Modified:
   branches/SAMBA_4_0/source/auth/auth_sam.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
   branches/SAMBA_4_0/source/dsdb/samdb/samdb.c
   branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c
   branches/SAMBA_4_0/source/lib/db_wrap.c
   branches/SAMBA_4_0/source/lib/ldb/config.mk
   branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c
   branches/SAMBA_4_0/source/libcli/ldap/ldap_ndr.c
   branches/SAMBA_4_0/source/ntvfs/common/sidmap.c
   branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
   branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
   branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
   branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.h
   branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
   branches/SAMBA_4_0/source/setup/provision.ldif


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


svn commit: samba r7861 - in branches/SAMBA_4_0/source/script: .

2005-06-23 Thread jelmer
Author: jelmer
Date: 2005-06-24 00:35:20 + (Fri, 24 Jun 2005)
New Revision: 7861

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

Log:
Nicer output, remove some false warnings.

Modified:
   branches/SAMBA_4_0/source/script/configure_check_unused.pl


Changeset:
Modified: branches/SAMBA_4_0/source/script/configure_check_unused.pl
===
--- branches/SAMBA_4_0/source/script/configure_check_unused.pl  2005-06-24 
00:18:20 UTC (rev 7860)
+++ branches/SAMBA_4_0/source/script/configure_check_unused.pl  2005-06-24 
00:35:20 UTC (rev 7861)
@@ -62,13 +62,14 @@
 
open(FI, $in) or die(Can't open $in);
my $ln = 0; 
-   foreach(FI) { 
+   my $line;
+   foreach($line = FI) { 
$ln++;
-   foreach(/\#([ \t]*)include []([^]+)/g) { 
+   if ($line =~ /\#([ \t]*)include []([^]+)/) { 
$headers-{$2} = $in:$ln;
}
 
-   foreach(/([A-Za-z0-9_]+)/g) { 
+   foreach($line =~ /([A-Za-z0-9_]+)/g) { 
$symbols-{$1} = $in:$ln;
}
}
@@ -100,10 +101,11 @@
 (keys %ac_func_checks) or warn(No function checks found in configure.in file, 
parse error?);
 
 foreach (keys %ac_func_checks) {
+   my $def = HAVE_.uc($_);
if (not defined($symbols{$_})) {
-   print $ac_func_checks{$_}: Autoconf-checked function $_ is 
unused\n;
-   } elsif (not defined($symbols{HAVE_.uc($_)})) {
-   print $ac_func_checks{$_}: Autoconf-define for function $_ is 
unused\n;
+   print $ac_func_checks{$_}: Autoconf-checked function `$_' is 
unused\n;
+   } elsif (not defined($symbols{$def})) {
+   print $ac_func_checks{$_}: Autoconf-define `$def' for function 
`$_' is unused\n;
}
 }
 
@@ -113,8 +115,8 @@
my $def = HAVE_.uc($_);
$def =~ s/[\/\.]/_/g;
if (not defined($headers{$_})) {
-   print $ac_headers{$_}: Autoconf-checked header $_ is unused\n;
+   print $ac_headers{$_}: Autoconf-checked header `$_' is 
unused\n;
} elsif (not defined($symbols{$def})) {
-   print $ac_headers{$_}: Autoconf-define for header $_ is 
unused\n; 
+   print $ac_headers{$_}: Autoconf-define `$def' for header `$_' 
is unused\n; 
}
 }



svn commit: samba r7862 - in branches/SAMBA_4_0/source/auth/kerberos: .

2005-06-23 Thread abartlet
Author: abartlet
Date: 2005-06-24 01:13:35 + (Fri, 24 Jun 2005)
New Revision: 7862

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

Log:
Updates to the Kerberos notes, based on recent changes and discoveries.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/kerberos/kerberos-notes.txt


Changeset:
Modified: branches/SAMBA_4_0/source/auth/kerberos/kerberos-notes.txt
===
--- branches/SAMBA_4_0/source/auth/kerberos/kerberos-notes.txt  2005-06-24 
00:35:20 UTC (rev 7861)
+++ branches/SAMBA_4_0/source/auth/kerberos/kerberos-notes.txt  2005-06-24 
01:13:35 UTC (rev 7862)
@@ -8,8 +8,8 @@
 The KDC I imagine checks the netbios address against this value, in
 the same way that the Samba server does this.
 
+The checking of this implies a little of the next question:
 
-
 Is a DAL the layer we need?
 ---
 
@@ -30,7 +30,10 @@
 Perhaps all we need to do is add in the same kludges as we have in
 Samba 3.0 for eDirectory.  Hmm...
 
+That said, the current layer provides us with a very good start, and
+any redefinition would occour from that basis.
 
+
 GSSAPI layer requirements
 -
 
@@ -39,7 +42,8 @@
 The MIT GSSAPI libs do not support kinit returning a different
 realm to what the client asked for, even just in case differences.
 
-Not looked into this on Heimdal quite yet.
+Heimdal has the same problem, and this applies to the krb5 layer, not
+just gssapi.
 
 
 Principal Names, long and short names
@@ -54,6 +58,8 @@
 operations, but because the server performs canonicalisation, this
 causes pain for current client libraries. 
 
+The canonicalisation of names matters not only for the KDC, but also
+for code that has to deal with keytabs.
 
 HOST/ Aliases
 -
@@ -73,7 +79,9 @@
 
  http://msdn.microsoft.com/library/en-us/adschema/adschema/a_spnmappings.asp
 
+We implement this in hdb-ldb.
 
+
 Returned Salt for PreAuthentication
 ---
 
@@ -164,27 +172,38 @@
 mostly a question of context, and how the library manages whatever
 internal state machines it has.  If the library uses a context
 variable, passed in by the caller, which contains all the information
-about the current state of the library, then it is safe.  A n example
+about the current state of the library, then it is safe.  An example
 of this state is the sequence number and session keys for an ongoing
 encrypted session).
 
 The other issue affecting state machines is 'blocking' (waiting for a
 read on a network socket).  
 
-Heimdal is not state machine safe for the GSSAPI layer in particular.
-Krb5 alone is much closer, as far as I can tell (the exception being the
-error string handling).  Adding safety is so 'easy', it is very, very
-tempting to modify the APIs required and 'just do it'.  Testing is a
-different problem however.
+Heimdal has this 'state machine safety' in parts, and we have modified
+the lorikeet branch to improve this behviour, when using a new,
+non-standard API.  
 
-We may just use a fork()ed child to handle this, and have one process
-per context.  This is primarily to solve the non-blocking issue.  
+Heimdal uses a per-context variable for the 'krb5_auth_context', which
+controls the ongoing encrypted connection, but does use global
+variables for the ubiquitous krb5_context parameter.  
 
-I had hoped to use the 'GSSAPI export context' function to transfer
+The modification that has added most to 'state machine safety' of
+GSSAPI is the addition of the gsskrb5_acquire_creds function.  This
+allows the caller to specify a keytab and ccache, for use by the
+GSSAPI code.  Therefore there is no need to use global variables to
+communicate this information. 
+
+At a more theoritical level (simply counting static and global
+variables) Heimdal is not state machine safe for the GSSAPI layer.
+The Krb5 layer alone is much closer, as far as I can tell, blocking
+excepted. .
+
+To deal with blocking, we could have a fork()ed child per context,
+using the 'GSSAPI export context' function to transfer
 the GSSAPI state back into the main code for the wrap()/unwrap() part
-of the operation, but we still hit issues of static storage (one
+of the operation.  This will still hit issues of static storage (one
 gss_krb5_context per process, and multiple GSSAPI encrypted sessions
-at a time).
+at a time) but these may not matter in practice.
 
 
 GSSAPI and Kerberos extensions
@@ -200,10 +219,60 @@
 
  - gsskrb5_get_authz_data()
 
- - case insensitive keytab
- - in-memory keytab
- - wildcard keytab (for in-memory operations)
+ - gsskrb5_acquire_creds() (takes keytab and/or ccache as input
+   parameters, see keytab and state machine discussion)
 
+Keytab requirements
+---
+
+Because windows machine account handling is very different to the
+tranditional 'MIT' keytab operation.  This starts when we look at the
+basis of the secrets 

svn commit: samba r7864 - in branches/SAMBA_4_0/source: dsdb/samdb torture/libnet

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 01:14:43 + (Fri, 24 Jun 2005)
New Revision: 7864

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

Log:
fixed some const bugs


Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c
   branches/SAMBA_4_0/source/torture/libnet/userman.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c
===
--- branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c  2005-06-24 
01:13:57 UTC (rev 7863)
+++ branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c  2005-06-24 
01:14:43 UTC (rev 7864)
@@ -35,7 +35,7 @@
struct ldb_message **res = NULL;
struct ldb_message_element *el;
int ret, i;
-   char *sidstr;
+   const char *sidstr;

*mask = 0;
 

Modified: branches/SAMBA_4_0/source/torture/libnet/userman.c
===
--- branches/SAMBA_4_0/source/torture/libnet/userman.c  2005-06-24 01:13:57 UTC 
(rev 7863)
+++ branches/SAMBA_4_0/source/torture/libnet/userman.c  2005-06-24 01:14:43 UTC 
(rev 7864)
@@ -278,7 +278,7 @@
struct dcerpc_pipe *p;
struct policy_handle h;
struct samr_String domain_name;
-   char* name = TEST_USERNAME;
+   const char *name = TEST_USERNAME;
TALLOC_CTX *mem_ctx;
BOOL ret = True;
 
@@ -339,7 +339,7 @@
struct dcerpc_pipe *p;
struct policy_handle h;
struct samr_String domain_name;
-   char* name = TEST_USERNAME;
+   const char *name = TEST_USERNAME;
TALLOC_CTX *mem_ctx;
BOOL ret = True;
 



svn commit: samba r7865 - in branches/SAMBA_4_0/source: build/pidl libcli/nbt librpc/ndr librpc/rpc rpc_server rpc_server/echo rpc_server/remote

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 01:18:56 + (Fri, 24 Jun 2005)
New Revision: 7865

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

Log:
changed pidl to take a const void * instead of a void * for the
structure in ndr_push_*() and ndr_print_*(). The push and print
functions really should not modify the structure.

metze, to make this work I had to change your spoolss hand
marshaller. Can you please check it is OK? I think that the IN and OUT
sides of that function are not ever called on the same structure, so I
think that attempt at remembering the value by assigning to
r-in._offered was not doing anything anyway, but please correct me if
I have misunderstood it.

If you really do need to remember something on those structures I'd
suggest the ndr_token_store() and ndr_token_retrieve() functions,
which are used by pidl for just this sort of thing.

Modified:
   branches/SAMBA_4_0/source/build/pidl/dcom_stub.pm
   branches/SAMBA_4_0/source/build/pidl/ndr_header.pm
   branches/SAMBA_4_0/source/build/pidl/ndr_parser.pm
   branches/SAMBA_4_0/source/build/pidl/server.pm
   branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
   branches/SAMBA_4_0/source/librpc/ndr/libndr.h
   branches/SAMBA_4_0/source/librpc/ndr/ndr.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr_drsuapi.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr_orpc.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr_sec.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr_sec_helper.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
   branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
   branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c


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


svn commit: samba r7866 - in branches/SAMBA_4_0/source: build/m4 heimdal_build lib/replace script

2005-06-23 Thread jelmer
Author: jelmer
Date: 2005-06-24 01:27:34 + (Fri, 24 Jun 2005)
New Revision: 7866

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

Log:
Remove some unused autoconf macro calls.

Some of these should probably be re-added again later when 
we need them. They should then be added to the appropriate config.m4 file 
in the source tree rather then in rewrite.m4.


Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4
   branches/SAMBA_4_0/source/heimdal_build/config.m4
   branches/SAMBA_4_0/source/lib/replace/win32.m4
   branches/SAMBA_4_0/source/script/configure_check_unused.pl


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4   2005-06-24 01:18:56 UTC 
(rev 7865)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4   2005-06-24 01:27:34 UTC 
(rev 7866)
@@ -60,16 +60,14 @@
 AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h 
sys/ipc.h sys/mode.h)
 AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h 
strings.h stdlib.h sys/socket.h)
 AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h 
termio.h)
-AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h 
sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
+AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h 
sys/statvfs.h stdarg.h sys/sockio.h)
 AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
 AC_CHECK_HEADERS(sys/syslog.h syslog.h)
 AC_CHECK_HEADERS(stdint.h locale.h)
 AC_CHECK_HEADERS(shadow.h netdb.h netinet/in.h netinet/ip.h netinet/tcp.h 
netinet/in_systm.h netinet/in_ip.h)
-AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h 
security/pam_appl.h security/pam_modules.h)
-AC_CHECK_HEADERS(stropts.h)
+AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h 
security/pam_appl.h)
 AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
 AC_CHECK_HEADERS(sys/acl.h)
-AC_CHECK_HEADERS(windows.h winsock2.h ws2tcpip.h)
 
 AC_TYPE_SIGNAL
 AC_TYPE_UID_T
@@ -187,23 +185,19 @@
 fi
 fi
 
-AC_CHECK_FUNCS(dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup 
strnlen strtoul strtoull strtouq strerror chown fchown chmod fchmod chroot link 
mknod mknod64)
-AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync bzero memset strlcpy 
strlcat setpgid)
-AC_CHECK_FUNCS(memmove vsnprintf snprintf asprintf vasprintf setsid glob 
strpbrk pipe crypt16 getauthuid)
-AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction sigset innetgr 
setnetgrent getnetgrent endnetgrent)
-AC_CHECK_FUNCS(initgroups select rdchk getgrnam getgrent pathconf realpath)
-AC_CHECK_FUNCS(setpriv setgidx setuidx setgroups sysconf mktime rename 
ftruncate chsize)
-AC_CHECK_FUNCS(setluid getpwanam setlinebuf)
-AC_CHECK_FUNCS(srandom random srand rand setenv usleep strcasecmp fcvt fcvtl 
symlink readlink)
-AC_CHECK_FUNCS(syslog vsyslog getgrouplist timegm backtrace)
+AC_CHECK_FUNCS(dlopen dlsym dlerror waitpid getcwd strdup strndup strnlen 
strtoul strtoull strtouq strerror chroot)
+AC_CHECK_FUNCS(bzero memset strlcpy strlcat)
+AC_CHECK_FUNCS(memmove vsnprintf snprintf asprintf vasprintf setsid pipe 
crypt16 getauthuid)
+AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction innetgr setnetgrent 
getnetgrent endnetgrent)
+AC_CHECK_FUNCS(initgroups)
+AC_CHECK_FUNCS(setgroups sysconf mktime rename ftruncate chsize)
+AC_CHECK_FUNCS(getpwanam setlinebuf)
+AC_CHECK_FUNCS(srandom random srand rand setenv usleep)
+AC_CHECK_FUNCS(syslog vsyslog timegm backtrace)
 AC_CHECK_FUNCS(setbuffer)
 
-AC_CHECK_FUNCS(getdents)
 AC_CHECK_FUNCS(pread pwrite)
 
-# needed for lib/charcnv.c
-AC_CHECK_FUNCS(setlocale)
-
 #
 # we might need the resolv library on some systems
 AC_CHECK_LIB(resolv, dn_expand)

Modified: branches/SAMBA_4_0/source/heimdal_build/config.m4
===
--- branches/SAMBA_4_0/source/heimdal_build/config.m4   2005-06-24 01:18:56 UTC 
(rev 7865)
+++ branches/SAMBA_4_0/source/heimdal_build/config.m4   2005-06-24 01:27:34 UTC 
(rev 7866)
@@ -1,9 +1,8 @@
-AC_CHECK_HEADERS(sys/file.h signal.h errno.h crypt.h curses.h sys/bittypes.h)
-AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h)
-AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h)
+AC_CHECK_HEADERS(sys/file.h crypt.h curses.h)
+AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/un.h)
+AC_CHECK_HEADERS(sys/utsname.h termcap.h timezone.h ttyname.h)
 
-AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit 
strsep)
-AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab)
+AC_CHECK_FUNCS(strupr)
 
 # these are disabled unless heimdal is found below
 SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT)

Modified: branches/SAMBA_4_0/source/lib/replace/win32.m4

svn commit: samba r7867 - in branches/SAMBA_4_0/source/setup: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 01:50:50 + (Fri, 24 Jun 2005)
New Revision: 7867

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

Log:
a couple of bug fixes for newuser.pl from kukks

I'm looking forward to deleting this file when we can add users using
the web intgerface (and maybe ejs scripts for the command line)

Modified:
   branches/SAMBA_4_0/source/setup/newuser.pl


Changeset:
Modified: branches/SAMBA_4_0/source/setup/newuser.pl
===
--- branches/SAMBA_4_0/source/setup/newuser.pl  2005-06-24 01:27:34 UTC (rev 
7866)
+++ branches/SAMBA_4_0/source/setup/newuser.pl  2005-06-24 01:50:50 UTC (rev 
7867)
@@ -121,14 +121,14 @@
 $ldif .= memberOf: $dom_users\n;
 $ldif .= userAccountControl: 0x10200\n;
 $ldif .= sAMAccountType: 0x3000\n;
-$ldif .= objectClass: user\n;
 $ldif .= unicodePwd: $opt_password\n;
 $ldif .= unixName: $opt_unixname\n;
 
 my $user_dn = CN=$opt_username,CN=Users,$domain_dn;
 
 open FILE, newuser.ldif;
-print FILE dn: $user_dn;
+print FILE dn: $user_dn\n;
+print FILE objectClass: user\n;
 print FILE $ldif\n;
 close FILE;
 



svn commit: samba-docs r690 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-24 02:30:32 + (Fri, 24 Jun 2005)
New Revision: 690

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

Log:
Update.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-Printing.xml


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


svn commit: samba-docs r691 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-24 02:44:45 + (Fri, 24 Jun 2005)
New Revision: 691

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

Log:
Update.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-foreword-cargill.xml


Changeset:
Modified: trunk/Samba3-HOWTO/TOSHARG-foreword-cargill.xml
===
--- trunk/Samba3-HOWTO/TOSHARG-foreword-cargill.xml 2005-06-24 02:30:32 UTC 
(rev 690)
+++ trunk/Samba3-HOWTO/TOSHARG-foreword-cargill.xml 2005-06-24 02:44:45 UTC 
(rev 691)
@@ -15,7 +15,7 @@
 that, I was the Director of Standards at Netscape, which was when I met John. 
Before Sun, there was Digital
 Equipment Corporation, also standards. I've written several books on 
standards, and tend to observe (and
 occasionally help) the technical and business trends that drive 
standardization as a discipline. I tend to see
-standardization as a management tool, not as a technical discipline – and this 
is part of the rationale that
+standardization as a management tool, not as a technical discipline and this 
is part of the rationale that
 John provided.
 /para
 
@@ -38,7 +38,7 @@
 
 para
 A emphasisgood standard/emphasis survives because people know how to use 
it. People know how to use a
-standard when it is so transparent, so obvious, and so easy that it become 
invisible. And a standard become
+standard when it is so transparent, so obvious, and so easy that it become 
invisible. And a standard becomes
 invisible only when the documentation describing how to deploy it is clear, 
unambiguous, and correct. These
 three elements must be present for a standard to be useful, allowing 
communication and interaction between two
 separate and distinct entities to occur without obvious effort. As you read 
this book, look for the evidence
@@ -56,8 +56,8 @@
 The intent of this book is not to convince anyone of any agenda political, 
technical, or social. The intent
 is to provide documentation for users who need to know about Samba, how to use 
it, and how to get on with
 their primary responsibilities. While there is pride on John's part because of 
the tremendous success of
-Samba, he write for the person who needs a tool to accomplish a particular 
job, and who has selected Samba to
-be that tool.
+the Samba documentation, he writes for the person who needs a tool to 
accomplish a particular job, and who has
+selected Samba to be that tool.
 /para
 
 para



svn commit: samba r7869 - in branches/SAMBA_4_0/source/heimdal_build: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 03:52:08 + (Fri, 24 Jun 2005)
New Revision: 7869

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

Log:
revert the configure changes from jelmers commit for heimdal_build
(they are needed when you use the in-tree heimdal)


Modified:
   branches/SAMBA_4_0/source/heimdal_build/config.m4


Changeset:
Modified: branches/SAMBA_4_0/source/heimdal_build/config.m4
===
--- branches/SAMBA_4_0/source/heimdal_build/config.m4   2005-06-24 01:58:40 UTC 
(rev 7868)
+++ branches/SAMBA_4_0/source/heimdal_build/config.m4   2005-06-24 03:52:08 UTC 
(rev 7869)
@@ -1,8 +1,9 @@
-AC_CHECK_HEADERS(sys/file.h crypt.h curses.h)
-AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/un.h)
-AC_CHECK_HEADERS(sys/utsname.h termcap.h timezone.h ttyname.h)
+AC_CHECK_HEADERS(sys/file.h signal.h errno.h crypt.h curses.h sys/bittypes.h)
+AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h)
+AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h)
 
-AC_CHECK_FUNCS(strupr)
+AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit 
strsep)
+AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab)
 
 # these are disabled unless heimdal is found below
 SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT)



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

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 04:25:40 + (Fri, 24 Jun 2005)
New Revision: 7870

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

Log:
fixed the RPC-SCHANNEL test. It turned out it was my const changes, as
they slightly changed the semantics of value() in pidl, which broke
a optimisation hack in some of our IDL files.

I've changed the idl files to remove the hack for now. Sometime we
need to find a better way to handle these :-)

Modified:
   branches/SAMBA_4_0/source/librpc/idl/eventlog.idl
   branches/SAMBA_4_0/source/librpc/idl/lsa.idl
   branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
   branches/SAMBA_4_0/source/librpc/idl/samr.idl
   branches/SAMBA_4_0/source/librpc/idl/winreg.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/eventlog.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/eventlog.idl   2005-06-24 03:52:08 UTC 
(rev 7869)
+++ branches/SAMBA_4_0/source/librpc/idl/eventlog.idl   2005-06-24 04:25:40 UTC 
(rev 7870)
@@ -18,7 +18,7 @@
 
typedef struct {
[value(2*strlen_m(name))] uint16 name_len;
-   [value(name_len)]   uint16 name_size;
+   [value(2*strlen_m(name))] uint16 name_size;
unistr_noterm *name;
} eventlog_String;
 

Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2005-06-24 03:52:08 UTC 
(rev 7869)
+++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2005-06-24 04:25:40 UTC 
(rev 7870)
@@ -32,7 +32,7 @@
 
typedef struct {
[value(2*strlen_m(string))] uint16 length;
-   [value(length)] uint16 size;
+   [value(2*strlen_m(string))] uint16 size;
unistr_noterm *string;
} lsa_String;
 

Modified: branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-06-24 03:52:08 UTC 
(rev 7869)
+++ branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-06-24 04:25:40 UTC 
(rev 7870)
@@ -21,7 +21,7 @@
 
typedef [public] struct {
[value(strlen_m(string)*2)]  uint16 size;
-   [value(size)]uint16 length;
+   [value(strlen_m(string)*2)]  uint16 length;
unistr_noterm *string;
} netr_String;


Modified: branches/SAMBA_4_0/source/librpc/idl/samr.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/samr.idl   2005-06-24 03:52:08 UTC 
(rev 7869)
+++ branches/SAMBA_4_0/source/librpc/idl/samr.idl   2005-06-24 04:25:40 UTC 
(rev 7870)
@@ -79,7 +79,7 @@
/* Function: 0x05 */
typedef struct {
[value(2*strlen_m(string))] uint16 length;
-   [value(length)] uint16 size;
+   [value(2*strlen_m(string))] uint16 size;
unistr_noterm *string;
} samr_String;  
 

Modified: branches/SAMBA_4_0/source/librpc/idl/winreg.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2005-06-24 03:52:08 UTC 
(rev 7869)
+++ branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2005-06-24 04:25:40 UTC 
(rev 7870)
@@ -16,7 +16,7 @@
 {
typedef struct {
[value(strlen_m_term(name)*2)] uint16 name_len;
-   [value(name_len)]  uint16 name_size;
+   [value(strlen_m_term(name)*2)] uint16 name_size;
unistr *name;
} winreg_String;
 



svn commit: samba r7871 - in branches/SAMBA_4_0/source/script/tests: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 04:33:37 + (Fri, 24 Jun 2005)
New Revision: 7871

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

Log:
setup spoolss, wins and hklm dbs correctly in selftest
Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-24 04:25:40 UTC 
(rev 7870)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-24 04:33:37 UTC 
(rev 7871)
@@ -57,6 +57,9 @@
ncalrpc dir = $NCALRPCDIR
lock dir = $LOCKDIR
sam database = tdb://$PRIVATEDIR/sam.ldb
+   spoolss database = tdb://$PRIVATEDIR/spoolss.ldb
+   wins database = tdb://$PRIVATEDIR/wins.ldb
+   registry:HKEY_LOCAL_MACHINE = tdb://$PRIVATEDIR/hklm.ldb
name resolve order = bcast
interfaces = lo*
 



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

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 04:42:05 + (Fri, 24 Jun 2005)
New Revision: 7872

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

Log:
another place we were relying on the old behaviour of value()

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


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-06-24 04:33:37 UTC 
(rev 7871)
+++ branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-06-24 04:42:05 UTC 
(rev 7872)
@@ -109,7 +109,7 @@
typedef [flag(NDR_PAHEX)] struct {
uint16 length;
[value(length)] uint16 size;
-   [size_is(size),length_is(length)] uint8 *data;
+   [size_is(length),length_is(length)] uint8 *data;
} netr_ChallengeResponse;
 
typedef [flag(NDR_PAHEX)] struct {



svn commit: samba r7873 - in branches/SAMBA_4_0/source/lib/ldb/common: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 05:17:36 + (Fri, 24 Jun 2005)
New Revision: 7873

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

Log:
hopefully fixed build of ldb_explode_dn() on AIX 

I'd really rather see this code completely replaced, but I'll leave
that to simo (he has volunteered) :-)

Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c
===
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c   2005-06-24 
04:42:05 UTC (rev 7872)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c   2005-06-24 
05:17:36 UTC (rev 7873)
@@ -35,7 +35,6 @@
  *  Author: Derrell Lipman
  */
 
-#include ctype.h
 #include includes.h
 #include ldb/include/ldb.h
 #include ldb/include/ldb_private.h
@@ -496,35 +495,18 @@
 }
 
 
-static char *
-parse_slash(char *p,
-char *end)
+static char *parse_slash(char *p, char *end)
 {
-   switch (*(p + 1)) {
-   case ',':
-   case '=':
-   case '\n':
-   case '+':
-   case '':
-   case '':
-   case '#':
-   case ';':
-   case '\\':
-   case '':
+   unsigned x;
+   if (strchr(,=\n+#;\\\, p[1])) {
memmove(p, p + 1, end - (p + 1));
return (end - 1);
-
-   default:
-if (isxdigit(p[1])  isxdigit(p[2])) {
-int x;
-
-sscanf(p + 1, %02x, x);
-*p = (char) x;
-memmove(p + 1, p + 3, end - (p + 3));
-return (end - 2);
-} else {
-return NULL;
-}
}
+   if (sscanf(p + 1, %02x, x) == 1) {
+   *p = (unsigned char)x;
+   memmove(p + 1, p + 3, end - (p + 3));
+   return (end - 2);
+   }
+   return NULL;
 }
 



svn commit: samba r7874 - in branches/SAMBA_4_0/source/build/smb_build: .

2005-06-23 Thread tridge
Author: tridge
Date: 2005-06-24 05:20:27 + (Fri, 24 Jun 2005)
New Revision: 7874

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

Log:
reverted metzes patch svn 7837 as it is not portable to make on
several platforms (such as FreeBSD)

Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2005-06-24 
05:17:36 UTC (rev 7873)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2005-06-24 
05:20:27 UTC (rev 7874)
@@ -164,8 +164,10 @@
 bin/.dummy:
@:  $@ || :  $@
 
-dynconfig.o: TARGET_CFLAGS=$(PATH_FLAGS)
-dynconfig.o: Makefile
+dynconfig.o: dynconfig.c Makefile
+   @echo Compiling $*.c
+   @$(CC) $(CFLAGS) @PICFLAG@ $(PATH_FLAGS) -c $ -o $@
[EMAIL PROTECTED]@  -mv `echo $@ | sed 's%^.*/%%g'` $@
 
 __EOD__
 }



svn commit: samba-docs r692 - in trunk/Samba3-HOWTO: .

2005-06-23 Thread jht
Author: jht
Date: 2005-06-24 05:52:48 + (Fri, 24 Jun 2005)
New Revision: 692

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

Log:
Updates.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-CUPS-printing.xml


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