Re: [Samba] problems with name resolution in a small home network

2005-08-15 Thread Claude Jones
On Sun August 14 2005 9:55 pm, Chris wrote:
 On Sunday 14 August 2005 08:21 pm, Claude Jones wrote:
  OK - I'm still trying to understand netbios node types and where they
  are applied, and when to specify them, and how, and where they are
  specified, and...

 This might help:

According to several sources I've read, including your citations, if I'm 
running wins as part of my Samba server, then netbios mode h is the proper 
mode. I've added the line
option netbios-node-type=8 to my dhcpd.conf 

Of the two Windows machines, studypc was set to 'm' mode, so I changed it to 
'h'. Julimobile was already set to 'h'. 


 Straight forward host declaration:
 ---
 your example
 ---
Thanks for this. I'd already found the section in my man dhcpd.conf and set 
it. So now, studypc is getting assigned fixed ip 192.168.2.33 at boot-time. 

 But this part isn't really a Samba issue and we should take it (and the
 DNS stuff) offline before they revoke our list membership.

Let's see. It's very late so I won't do any thorough testing tonight. Maybe 
these other changes have fixed it. The rndc stuff I referred to has to with 
getting named.conf and rndc.conf to refer to a secret key in order to do dns. 
I don't fully understand it, but it is supposedly working.

 Ack! Shut the firewalls totally down for testing purposes. 

Yes. I know about turning off  the firewalls. 

 Another aside is to be wary of using a .local TLD for your home network
 as sometimes an mdns conflict can arise.

Whats a .local TLD?

-- 
Claude Jones
Bluemont, VA, USA
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] wbinfo -t not working on BDC (Attempt to bind using schannel without successful serverauth2)

2005-08-15 Thread Ian Clancy

Hi,
Further to this. I'm recieving the following error in the log's of the BDC:

Attempt to bind using schannel without successful serverauth2

regards,
Ian


Ian Clancy wrote:


Hi,
I just can't seem to get winbind to work on my BDC. I'm using FC3 and 
samba 3.0.20rc2. My PDC is RHEL4 running Samba 3.0.14a. / Openldap.
I can join the BDC to the domain successfully using net rpc join... 
, but when i enter wbinfo -t to check the trust relationship i get


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

I placed a packet sniffer on the PDC to see what was happening and 
captured the folloing RPM_NETLOGON communication between the BDC and 
the PDC (see attached ethereal dump file). It appears to fail when the 
BDC looks for an account of the same name as the my domain -  CEL. The 
question is , Do i need to create a trust account for my own domain ?.

thanks for reading :)
Ian




--
Ian Clancy
IT Systems Engineer
Connaught Electronics Ltd.
Dunmore Rd,
Tuam,
Co. Galway,
Ireland.

P : ++353 93 23151
F : ++353 93 23110
E : mailto:[EMAIL PROTECTED]
W : http://www.cel-europe.com


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


Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Ian Clancy

Lonnie,
Had a similar problem to you. This should help 
http://www.rpm.org/hintskinks/unpackaged-files/


--
Ian Clancy
IT Systems Engineer
Connaught Electronics Ltd.
Dunmore Rd,
Tuam,
Co. Galway,
Ireland.

P : ++353 93 23151
F : ++353 93 23110
E : mailto:[EMAIL PROTECTED]
W : http://www.cel-europe.com



Lonnie wrote:


Hello All,

I have been trying all afternoon to rebuild the Samba RPM for my 
Fedora 3 with the MySQL passdb support and from what I can see it only 
needs the inclusion of --with-expsam=mysql in the SPEC file in 
addition to the regular ones.


The problem is that no matter what version of Samba I try to rebuild, 
it always gice an error at the same place:

---
Processing files: samba-client-3.0.10-1.fc3
Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1 
rpmlib(PayloadFilesHavePrefix) = 4.0-1
Requires: /bin/sh /usr/bin/perl libc.so.6 libc.so.6(GLIBC_2.0) 
libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) 
libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libcom_err.so.2 
libcrypt.so.1 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) 
libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 liblber-2.2.so.7 
libldap-2.2.so.7 libncurses.so.5 libnsl.so.1 libnsl.so.1(GLIBC_2.0) 
libpopt.so.0 libreadline.so.4 libresolv.so.2 samba-common = 0:3.0.10

Obsoletes: smbfs
Processing files: samba-common-3.0.10-1.fc3
Provides: CP437.so CP850.so config(samba-common) = 0:3.0.10-1.fc3 
libnss_winbind.so libnss_wins.so libsmbclient.so.0 pam_winbind.so

Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1 
rpmlib(PayloadFilesHavePrefix) = 4.0-1

Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/sh config(samba-common) = 0:3.0.10-1.fc3 libc.so.6 
libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) 
libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) 
libcom_err.so.2 libcrypt.so.1 libcrypto.so.4 libcups.so.2 libdl.so.2 
libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 
libk5crypto.so.3 libkrb5.so.3 liblber-2.2.so.7 libldap-2.2.so.7 
libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpam.so.0 libpopt.so.0 
libresolv.so.2 libssl.so.4

Processing files: samba-swat-3.0.10-1.fc3
Provides: config(samba-swat) = 0:3.0.10-1.fc3
Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1 
rpmlib(PayloadFilesHavePrefix) = 4.0-1
Requires: config(samba-swat) = 0:3.0.10-1.fc3 libc.so.6 
libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) 
libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) 
libcom_err.so.2 libcrypt.so.1 libcrypto.so.4 libcups.so.2 libdl.so.2 
libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 
libk5crypto.so.3 libkrb5.so.3 liblber-2.2.so.7 libldap-2.2.so.7 
libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpam.so.0 libpopt.so.0 
libresolv.so.2 libssl.so.4 samba = 0:3.0.10 xinetd


Processing files: samba-debuginfo-3.0.10-1.fc3
Provides: CP437.so.debug CP850.so.debug audit.so.debug cap.so.debug 
default_quota.so.debug expand_msdfs.so.debug extd_audit.so.debug 
fake_perms.so.debug full_audit.so.debug libnss_winbind.so.2.debug 
libnss_wins.so.2.debug libsmbclient.so.debug mysql.so.debug net.debug 
netatalk.so.debug nmbd.debug nmblookup.debug ntlm_auth.debug 
pam_smbpass.so.debug pam_winbind.so.debug pdbedit.debug profiles.debug 
readonly.so.debug recycle.so.debug rpcclient.debug 
shadow_copy.so.debug smbcacls.debug smbclient.debug smbcontrol.debug 
smbcquotas.debug smbd.debug smbmnt.debug smbmount.debug 
smbpasswd.debug smbspool.debug smbstatus.debug smbtree.debug 
smbumount.debug swat.debug tdbbackup.debug tdbdump.debug tdbtool.debug 
testparm.debug testprns.debug wbinfo.debug winbindd.debug
Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1 
rpmlib(PayloadFilesHavePrefix) = 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/var/tmp/samba-3.0.10-root

error: Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


RPM build errors:
   Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


This /usr/lib/samba/pdb/mysql.so does not exist and if I understnd 
this error then it is saying that it keeps finding it.


Can someone please tell me what is happening here?




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


[Samba] automount problem

2005-08-15 Thread Jan Dworschak
hi,
I'm not sure if this is the right list.
my client is sharing a folder via samba (/export)
In that folder there is a automount-entry for my usbstick (/export/usbstick)
On another host i can mount the export with mount.smbfs
As soon as I access the stick (so automount gets active) i cannot umount
the share. Get error: device is busy (automount timeout is set to 2sec.)

When i never access the stick (automount is still waiting), a umount is
no problem.

any suggestions?

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


[Samba] Machine name defined on AD Server; unable to join linux machine -- receiving error.

2005-08-15 Thread pctbeta
Samba version 3.0.0.14.3E
Linux Enterprise version 2.4.21-4
Server Role: ROLE DOMAIN MEMBER
Not currently using kerberos.

This is part of my smb.conf.  

[global]
workgroup = WKGRP
netbios name = NAME
server string = Samba Server
security = DOMAIN
password server = PASS_SERV
username map = /etc/samba/smbusers
log level = 3
max log size = 50
local master = No
wins server = xx.xxx.xxx.xxx

On the ADS side, I have the linux machine name, NAME, defined without any other
setup.  According to the ADS administrators, I do not need a user/password
since the machine is defined with the authentication.

I am trying to join the linux machine to the ADS.  This is what I have tried to
no avail:

net ads join -s /etc/samba/smb.conf
net join -s /etc/samba/smb.conf
net join NAME -s /etc/samba/smb.conf
net ads join -w WKGRP
net ads join -U administrator -s /etc/samba/smb.conf

1) If I have the linux machine name defined on the ADS prior to having joining
the domain, is this the proper way?
2) Any suggestions on what I might need to change?

Thank you in advance for any help.
Magdalene

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Lonnie

Hello Ian,

In searching for a solution to this problem, I ran across this link as 
well, but am not really clear as to what it is saying for me to do.



Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/var/tmp/samba-3.0.10-root

error: Installed (but unpackaged) file(s) found:
 /usr/lib/samba/pdb/mysql.so


RPM build errors:
  Installed (but unpackaged) file(s) found:
 /usr/lib/samba/pdb/mysql.so


Do I modify the SPEC file?

Also, is this saying that /usr/lib/samba/pdb/mysql.so is missing as I 
think that I need that in order to run the MySQL passwd right?


Thanks,

Lonnie Cumberland


Ian Clancy wrote:


Lonnie,
Had a similar problem to you. This should help 
http://www.rpm.org/hintskinks/unpackaged-files/



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


[Samba] windows nt 4.0 workstation can not load server profile from samba

2005-08-15 Thread Markus Markert
hi list,

i have a strange problem. i use samba as pdc with ldap authentification. works 
nearly perfect. one problem is, that the server profile after the login on 
the nt workstation cannot load from the server, but when i logout from the 
workstation, the profile is written to the server.

anyone a hint for me?

greetings 

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


Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Geert Stappers
On Mon, Aug 15, 2005 at 06:54:30AM -0500, Lonnie wrote:
 Ian Clancy wrote:
 
 Lonnie,
 Had a similar problem to you. This should help 
 http://www.rpm.org/hintskinks/unpackaged-files/
 
 Hello Ian,
 
 In searching for a solution to this problem, I ran across this link as 
 well, but am not really clear as to what it is saying for me to do.
 
 
   snip/ 
 RPM build errors:
   Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so
 
 
 Do I modify the SPEC file?
 
 Also, is this saying that /usr/lib/samba/pdb/mysql.so is missing as I 
 think that I need that in order to run the MySQL passwd right?
 

As I read it, it says:

 /usr/lib/samba/pdb/mysql.so is allready on the computer available
 and that RPM will not overwrite it.



Something completely different:

Could the answer please go below the question?( Hi  JHT ;-)

And why are (basic?) RPM building questions posted to the samba
mailinglist?


Cheers
Geert Stappers



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

RE: [Samba] windows nt 4.0 workstation can not load server profile fromsamba

2005-08-15 Thread Louis van Belle
Hi, I just found out i have the same problem.

i also notised, when you logoff from Workstation A
then login on workstation B, the logon takes ages.
and the userprofile is not kopies from the server.

Greetz Louis

my rights on /home/samba/profiles   ( 1777 )  Administrator:Domain Admins
/snap from smb.conf

## MISC FILES/DIRECTORIES
nt acl support = yes
map acl inherit = yes
dos charset = 850
unix charset = ISO8859-1
preserve case = yes
short preserve case = yes
case sensitive = no
directory mask = 0750
hide dot files = yes
hide unreadable = yes
hide files = /desktop.ini
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
create mask = 0644
 
## MISC OTHER
mangling method = hash2
deadtime = 10
map to guest = Bad User

## MISC PROFILE
logon script = logon.cmd
logon home = \\%L\%U
logon path = \\%L\profiles\%U
logon drive = P:


[profiles]
path = /home/samba/profiles
comment = Profiel omgeving
read only = no
create mask = 0600
directory mask = 0700
browseable = No
guest ok = Yes
profile acls = yes
csc policy = disable
# next line is a great way to secure the profiles
force user = %U
# next line allows administrator to access all profiles
valid users = %U
#   nt acl support = yes
default case = lower
short preserve case = no
case sensitive = no

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
Namens Markus Markert
Verzonden: maandag 15 augustus 2005 14:40
Aan: samba@lists.samba.org
Onderwerp: [Samba] windows nt 4.0 workstation can not load 
server profile fromsamba

hi list,

i have a strange problem. i use samba as pdc with ldap 
authentification. works 
nearly perfect. one problem is, that the server profile after 
the login on 
the nt workstation cannot load from the server, but when i 
logout from the 
workstation, the profile is written to the server.

anyone a hint for me?

greetings 

markus
-- 
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] LM and NT password (help)

2005-08-15 Thread Marcio Luciano Donada

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

good day
I am using phpLdapPasswd to modify the password of the users of the
Domain.  But so that this was possible used one patch, that I found in
http://lists.samba.org/archive/samba/2005-January/099108.html.
But I am with problems to after enter of the user login in the domain.
The problem is the SambaLMPassword and SambaNTPassword.  Somebody has
some tip so that the process functions correctly?

[]'s

- --
Márcio Luciano Donada
T.I. Aurora Alimentos Chapecó(SC)
Cooperativa Central Oeste Catarinense
mdonada at auroraalimentos dot com dot br
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAJVwyJq2hZEymxcRAkCzAJ98Ly1XBh9eYpprJCjS0nLnTqTNiQCg00gN
TZmp2Pr/KnNNPJBC9/VTfeM=
=pDMH
-END PGP SIGNATURE-

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


Re: [Samba] problems with name resolution in a small home network

2005-08-15 Thread Chris
On Monday 15 August 2005 02:42 am, Claude Jones wrote:
 According to several sources I've read, including your citations, if
 I'm running wins as part of my Samba server, then netbios mode h is
 the proper mode. I've added the line
 option netbios-node-type=8 to my dhcpd.conf

In general that's fine. If you're running a wins server and a dns server 
than than you should eliminate the hosts/lmhosts use (outside of the 
standard localhost line(s) in hosts) - it's a waste of time, redundant, 
and not flexible.
Do you have a dhcp option for wins servers as well? Such as:
-
option netbios-name-servers 192.168.2.1, 192.168.2.1;
-

 Let's see. It's very late so I won't do any thorough testing tonight.
 Maybe these other changes have fixed it. The rndc stuff I referred to
 has to with getting named.conf and rndc.conf to refer to a secret key
 in order to do dns. I don't fully understand it, but it is supposedly
 working.

I can only guess that neither your WINS nor your DNS are working 
properly, otherwise all of your name resolutions should have worked 
without hosts/lmhosts entries.

 Whats a .local TLD?

TLD = Top Level Domain
A domain name that ends (the top level) in .local. Such as 
jones.local, where your the FQDN of your hosts would be something 
like vproductions2.jones.local, etc.

I think Fedora introduced the glibc with mdns support, which from as 
little as I know about, seems to allow automatic name discovery via 
broadcasts kind of like what NetBIOS does. It will interfere with 
otherwise normal name resolution attempts.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] problems with name resolution in a small home network

2005-08-15 Thread Chris
On Monday 15 August 2005 02:42 am, Claude Jones wrote:
 The rndc stuff I referred to has to with
 getting named.conf and rndc.conf to refer to a secret key in order to
 do dns.

Just realized that it's r n d c. With the small font I'm using I thought 
it was m d c (the r really close to the n looks like an m).
A secret key in order to administer bind as it allows for remote 
administration.
I run BIND on my server here (an ancient SuSE 7.3 installation) but have 
never used the rndc utility. When I rebuild the server I'm switching 
over to djbdns.

Maybe you're just running a DNS proxy and no content server.
If you do dig samba.org does the line with SERVER have your server's 
IP address?
If you do dig one.of.your.systems (an FQDN for one of your systems), 
do you get an answer (is ANSWER: = 1)?

Feel free to reply off list if desired as this is getting less samba 
related.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] MSDFS redirection WinXP SP2

2005-08-15 Thread David Richardson
I am currently having problems accesing our samba msdfs shares from 
Windows XP  SP2, Windows 2000 and WinXP SP1 seem unaffected. I have 
attached the smb.conf and the exports files that define the shares. 
Running ethereal on the different clients seems to point to the fact 
that XP SP2 no longer seems to be using the netbios-ssn (139) port. for 
GET_DFS_REFERRAL instead its using microsoft-ds (445). I have ethereal 
dumps if required.


Any advice would be most welcome.

Many thanks Dave

smb.conf

# Global parameters
[global]
   workgroup = LONDON
   security = DOMAIN
   encrypt passwords = Yes
   password server = bonky
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*

   max log size = 50
   log file = /var/log/samba/log.%m
   os level = 0
   local master = No
   domain master = no
   NIS homedir = Yes
   comment = Samba %v + msdfs redirector
#print command = /usr/samba/bin/sambalp %p %s %U %m
   lppause command =
   lpresume command =
   wins server = 10.123.10.50
   name resolve order = wins host bcast
   locking = yes
   socket options = TCP_NODELAY
   preserve case = yes
   short preserve case = yes
#log level = 4
   interfaces = eth0 lo
   bind interfaces only = Yes
   host msdfs = yes
   netbios aliases =  cvs hades hosts jobs packages production 
publicity vdisk

# Some virus protection
   veto files = /*.eml/*.nws/riched20.dll/*.{*}/

exports.hades.conf

[2d]
   msdfs root = yes
   msdfs proxy = \dualit\data-2d

[3d]
   msdfs root = yes
   msdfs proxy = \groucho\data-3d

[rnd]
   msdfs root = yes
   msdfs proxy = \shiva\rnd

[dataops]
   msdfs root = yes
   msdfs proxy = \shiva\dataops

[docs]
   msdfs root = yes
   msdfs proxy = \timmy\docs

[tutorials]
   msdfs root = yes
   msdfs proxy = \timmy\tutorials

[snr]
   msdfs root = yes
   msdfs proxy = \thoth\snr

exports.hosts.conf

#
# This file is autogenerated, so don't bother editing it.
# Last generated by /home/tssrc/scripts/cron_scripts/update_hosts_shares.pl
# on Mon Aug 15 14:36:27 2005
[aero2k]
   path = /etc/samba/msdfs_links/hosts/aero2k
   msdfs root = yes
[aggravator]
   path = /etc/samba/msdfs_links/hosts/aggravator
   msdfs root = yes
[amiga2k]
   path = /etc/samba/msdfs_links/hosts/amiga2k
   msdfs root = yes
[anise]
   path = /etc/samba/msdfs_links/hosts/anise
   msdfs root = yes
[aniseed]
   path = /etc/samba/msdfs_links/hosts/aniseed
   msdfs root = yes
[anubis]
   path = /etc/samba/msdfs_links/hosts/anubis
   msdfs root = yes
[apu]
   path = /etc/samba/msdfs_links/hosts/apu
   msdfs root = yes
[aquaman]
   path = /etc/samba/msdfs_links/hosts/aquaman
   msdfs root = yes
[archimedes]
   path = /etc/samba/msdfs_links/hosts/archimedes
   msdfs root = yes
[aristotle]
   path = /etc/samba/msdfs_links/hosts/aristotle
   msdfs root = yes
[arthur]
   path = /etc/samba/msdfs_links/hosts/arthur
   msdfs root = yes
[asafoetida2k]
   path = /etc/samba/msdfs_links/hosts/asafoetida2k
   msdfs root = yes
[aslan]
   path = /etc/samba/msdfs_links/hosts/aslan
   msdfs root = yes
[avalanche]
   path = /etc/samba/msdfs_links/hosts/avalanche
   msdfs root = yes
[avarice]
   path = /etc/samba/msdfs_links/hosts/avarice
   msdfs root = yes
[axe]
   path = /etc/samba/msdfs_links/hosts/axe
   msdfs root = yes
[babbage]
   path = /etc/samba/msdfs_links/hosts/babbage
   msdfs root = yes
[baby2k]
   path = /etc/samba/msdfs_links/hosts/baby2k
   msdfs root = yes
[bago]
   path = /etc/samba/msdfs_links/hosts/bago
   msdfs root = yes
[bambi]
   path = /etc/samba/msdfs_links/hosts/bambi
   msdfs root = yes
[barley]
   path = /etc/samba/msdfs_links/hosts/barley
   msdfs root = yes
[barney]
   path = /etc/samba/msdfs_links/hosts/barney
   msdfs root = yes
[bart]
   path = /etc/samba/msdfs_links/hosts/bart
   msdfs root = yes
[bashful]
   path = /etc/samba/msdfs_links/hosts/bashful
   msdfs root = yes
[basil2k]
   path = /etc/samba/msdfs_links/hosts/basil2k
   msdfs root = yes
[bay2k]
   path = /etc/samba/msdfs_links/hosts/bay2k
   msdfs root = yes
[bazooka]
   path = /etc/samba/msdfs_links/hosts/bazooka
   msdfs root = yes
[bedivere]
   path = /etc/samba/msdfs_links/hosts/bedivere
   msdfs root = yes
[bhuna]
   path = /etc/samba/msdfs_links/hosts/bhuna
   msdfs root = yes
[bob2k]
   path = /etc/samba/msdfs_links/hosts/bob2k
   msdfs root = yes
[bonkers]
   path = /etc/samba/msdfs_links/hosts/bonkers
   msdfs root = yes
[bonky]
   path = /etc/samba/msdfs_links/hosts/bonky
   msdfs root = yes
[bors2k]
   path = /etc/samba/msdfs_links/hosts/bors2k
   msdfs root = yes
[braille]
   path = /etc/samba/msdfs_links/hosts/braille
   msdfs root = yes
[braun]
   path = /etc/samba/msdfs_links/hosts/braun
   msdfs root = yes
[britney]
   path = /etc/samba/msdfs_links/hosts/britney
   msdfs root = yes
[brussel]
   path = /etc/samba/msdfs_links/hosts/brussel
   msdfs root = yes
[canvas]
   path = /etc/samba/msdfs_links/hosts/canvas
   msdfs root = yes

[Samba] net rpc testjoin ERROR

2005-08-15 Thread Marcos Ferreira da Silva
I configure samba+ldap.
I use smbldap-tools.
I use fedora 2.6.12-1.1398_FC4, samba-3.0.14a-2, openldap-2.2.23-5.

When I execute the command net rpc testjoin is show me an error.

[EMAIL PROTECTED] ~]# net rpc testjoin -S servidor -U root%senha
[2005/08/15 12:05:58, 0] utils/net_rpc_join.c:net_rpc_join_ok(66)
Join to domain 'CASA' is not valid


Marcos

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


[Samba] Getting Winbind IDMAP into LDAP?

2005-08-15 Thread Gibbs, Simon
Hi,

I¹ve been trying to populate an LDAP directory with IDMAP information from
Winbind using NSS_LDAP without much success over the last week.
Can anybody tell me if I¹ve done anything obviously wrong?

I¹ve followed the example shown in the Samba ³By Example² doc and am at the
stage where the LDAP directory has been created and configured, NSS_LDAP
config is amended, smb.conf contains entries to use LDAP as a backend and I
have deleted /var/cache/samba/winbindd_cache.tdb and winbindd_idmap.tdb. Now
wbinfo ­u and wbinfo ­g show users and groups on the domain but getent
passwd/groups only displays local users. The winbindd_cache.tdb and
winbindd_idmap.tdb files have been recreated but only winbindd_cache.tdb
holds any information. When I attempt to access a Samba share I¹m prompted
to enter a username and password.

As I understand it once the wbinfo commands have been run this process
should automatically populate the Idmap ou with the ID mappings ­ is this
correct? If so there must be something wrong with my config.

Here¹s the current config and relevent info ­ sorry it¹s a bit long:

/etc/samba/smb.conf

[global]
workgroup = UKCORPLAN
netbios name = UKFS01
server string = UKFS01 Samba Server
winbind separator = /
ldap ssl = no
idmap uid = 1-1000
idmap gid = 1-1000
ldap admin dn = cn=Manager,dc=uk,dc=corplan,dc=net
ldap idmap suffix = ou=Idmap
ldap suffix = dc=uk,dc=corplan,dc=net
idmap backend = ldap:ldap://10.10.4.111/
winbind enum users = yes
winbind enum groups = yes
template homedir = /mnt/emcpowerb/user/%D/%U
template shell = /bin/bash
password server = ukdc01.uk.corplan.net
security = ADS
#encrypt passwords = yes
realm = uk.corplan.net
browseable = yes
username map = /etc/samba/smbusers
log level = 10 ads:10 auth:10 sam:10 rpc:10 idmap:10
syslog = 0
log file = /var/log/samba/%m
max log size = 50
# Share Definitions
==
[homes]
comment = Home Directories
browseable = no
writable = yes

[public]
comment = Public Stuff
path = /home/samba
public = yes
read only = no

[test]
comment = test share
path = /mnt/emcpowera/shared/test
public = yes
browseable = yes
writeable = yes

/etc/nsswitch.conf

passwd: files ldap
shadow: files ldap
group:  files ldap

#hosts: db files nisplus nis dns
hosts:  files dns

/etc/openldap/slapd.conf

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
## schema files (core.schema is required by default)
include /etc/openldap/schema/core.schema

## needed for sambaSamAccount
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/samba.schema

# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral   ldap://root.openldap.org

pidfile /var/run/slapd.pid
argsfile/var/run/slapd.args

# Load dynamic backend modules:
# modulepath/usr/sbin/openldap
# moduleloadback_bdb.la
# moduleloadback_ldap.la
# moduleloadback_ldbm.la
# moduleloadback_passwd.la
# moduleloadback_shell.la

# Sample access control policy:
#   Root DSE: allow anyone to read it
#   Subschema (sub)entry DSE: allow anyone to read it
#   Other DSEs:
#   Allow self write access
#   Allow authenticated users read access
#   Allow anonymous users to authenticate
#   Directives needed to implement policy:
# access to dn.base= by * read
# access to dn.base=cn=Subschema by * read
#access to *
#   by self write
#   by users read
#   by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., access to * by * read)
#
# rootdn can always read and write EVERYTHING!

###
# ldbm and/or bdb database definitions
###

databasebdb
suffix   dc=uk,dc=corplan,dc=net
rootdn  cn=Manager,dc=uk,dc=corplan,dc=net
# Cleartext passwords, especially for the rootdn, should
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw  secret

# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory   /var/lib/ldap/samba

# Indices to maintain for this database
# Required by OpenLDAP
index objectClass   eq,pres
index ou,cn,mail,surname,givenname  eq,pres,sub
index uidNumber,gidNumber,loginShelleq,pres
index uid,memberUid eq,pres,sub
index 

Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Lonnie

To answer your Something completely different question.

It is because I am trying to build a Samba rpm.

This list is where all members, both newbies like myself and seasoned 
experts, can come for help and share their ideas and problems associated 
with Samba.


You do not have the market corner on types of Samba related questions 
that you think should be asked and that you think are important.


Thanks,

Lonnie



Something completely different:

Could the answer please go below the question?( Hi  JHT ;-)

And why are (basic?) RPM building questions posted to the samba
mailinglist?


Cheers
Geert Stappers

 


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


Re: [Samba] SIDs and UIDs and RIDs - Oh My!

2005-08-15 Thread John H Terpstra
On Sunday 14 August 2005 18:40, Moondance Foxmarnick wrote:
 When you say:  Every instance in SMB world has to have its own SID 
 Does that mean that on top of every logon, say- for each folder connection,
 a SID is generated?

No. A SID represents a security context. For example, every Windows machine 
has local accounts within the security context of the local machine which has 
a unique SID. Every domain (NT4, ADS, Samba) contains accounts that exist 
within the domain security context which is defined by the domain SID.

A domain member server will have a SID that differs from the domain SID.
The domain member server can be configured to regard all domain users as local 
users. It can also be configured to recognize domain users and groups as 
non-local.

SIDs are persistent.

 And if so, is this a temporary SID like a token for the session, or is it
 stored internally to SAMBA?

The Samba domain and machine SIDs are stored in /etc/samba/secrets.tdb. You 
can view the contents of this file using tdbdump.

PS: I have updated the PDC Chapter to provide a more detailed explanation of 
the relationship between the RID and the SID. The on-line version of the 
HOWTO should reflect this change within 48 hours.

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


[Samba] Error:The semaphore timeout period has expired

2005-08-15 Thread BURRUEL, BENJAMIN D (SBCSI)



 We are  experiencing the semaphore timeout period has expired error
 while attempting to connect to a Samba share on an AIX machine from
 W2k desktops.  
 I saw some other posts in the archives about this error, but I did not
 see any about the resolution.  Has anyone come up with a resolution
 for this?
 
 What is unusual is that we have 2 AIX servers running the same version
 of SAMBA and we can connect to one but not the other.
 Both AIX servers are physically identical.
 
 smb.conf on both systems are nearly identical except for the server
 string statement.
 
 
 Ben Burruel
 Sr. Systems Manager
 Metrics  Mainframe Capacity Planning
 San Diego
 (858) 886-3363
 
 PROPRIETARY INFORMATION
 Not for use or disclosure outside the SBC family of companies, except
 under written agreement.
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: [xfs-masters] [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Christoph Hellwig
On Mon, Aug 15, 2005 at 11:08:04AM -0700, Nishanth Aravamudan wrote:
 Description: Use schedule_timeout_{,un}interruptible() instead of
 set_current_state()/schedule_timeout() to reduce kernel size. Also use
 helper functions to convert between human time units and jiffies rather
 than constant HZ division to avoid rounding errors.

The XFS changes are still wrong for the same rason as last time,
we actually do want the daemons to do work if they're woken earlier
using wake_up_process.

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


[Samba] [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Nishanth Aravamudan
Description: Use schedule_timeout_{,un}interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size. Also use
helper functions to convert between human time units and jiffies rather
than constant HZ division to avoid rounding errors.

Signed-off-by: Nishanth Aravamudan [EMAIL PROTECTED]

---

 fs/cifs/cifsfs.c |7 ++-
 fs/cifs/connect.c|6 ++
 fs/jbd/transaction.c |3 +--
 fs/lockd/clntproc.c  |3 +--
 fs/nfs/nfs3proc.c|3 +--
 fs/nfs/nfs4proc.c|   12 
 fs/reiserfs/journal.c|3 +--
 fs/smbfs/proc.c  |3 +--
 fs/xfs/linux-2.6/time.h  |3 +--
 fs/xfs/linux-2.6/xfs_buf.c   |6 +++---
 fs/xfs/linux-2.6/xfs_super.c |   12 ++--
 11 files changed, 23 insertions(+), 38 deletions(-)

diff -urpN 2.6.13-rc5-mm1/fs/cifs/cifsfs.c 2.6.13-rc5-mm1-dev/fs/cifs/cifsfs.c
--- 2.6.13-rc5-mm1/fs/cifs/cifsfs.c 2005-08-07 09:57:37.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/cifs/cifsfs.c 2005-08-10 15:03:11.0 -0700
@@ -781,14 +781,11 @@ static int cifs_oplock_thread(void * dum
 
oplockThread = current;
do {
-   set_current_state(TASK_INTERRUPTIBLE);
-   
-   schedule_timeout(1*HZ);  
+   schedule_timeout_interruptible(1*HZ);  
spin_lock(GlobalMid_Lock);
if(list_empty(GlobalOplock_Q)) {
spin_unlock(GlobalMid_Lock);
-   set_current_state(TASK_INTERRUPTIBLE);
-   schedule_timeout(39*HZ);
+   schedule_timeout_interruptible(39*HZ);
} else {
oplock_item = list_entry(GlobalOplock_Q.next, 
struct oplock_q_entry, qhead);
diff -urpN 2.6.13-rc5-mm1/fs/cifs/connect.c 2.6.13-rc5-mm1-dev/fs/cifs/connect.c
--- 2.6.13-rc5-mm1/fs/cifs/connect.c2005-08-07 10:05:22.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/cifs/connect.c2005-08-12 13:42:49.0 
-0700
@@ -3215,10 +3215,8 @@ cifs_umount(struct super_block *sb, stru
}

cifs_sb-tcon = NULL;
-   if (ses) {
-   set_current_state(TASK_INTERRUPTIBLE);
-   schedule_timeout(HZ / 2);
-   }
+   if (ses)
+   schedule_timeout_interruptible(msecs_to_jiffies(500));
if (ses)
sesInfoFree(ses);
 
diff -urpN 2.6.13-rc5-mm1/fs/jbd/transaction.c 
2.6.13-rc5-mm1-dev/fs/jbd/transaction.c
--- 2.6.13-rc5-mm1/fs/jbd/transaction.c 2005-08-07 10:05:22.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/jbd/transaction.c 2005-08-10 15:03:33.0 
-0700
@@ -1340,8 +1340,7 @@ int journal_stop(handle_t *handle)
if (handle-h_sync) {
do {
old_handle_count = transaction-t_handle_count;
-   set_current_state(TASK_UNINTERRUPTIBLE);
-   schedule_timeout(1);
+   schedule_timeout_uninterruptible(1);
} while (old_handle_count != transaction-t_handle_count);
}
 
diff -urpN 2.6.13-rc5-mm1/fs/lockd/clntproc.c 
2.6.13-rc5-mm1-dev/fs/lockd/clntproc.c
--- 2.6.13-rc5-mm1/fs/lockd/clntproc.c  2005-08-07 09:58:15.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/lockd/clntproc.c  2005-08-10 15:03:41.0 
-0700
@@ -299,8 +299,7 @@ nlmclnt_alloc_call(void)
return call;
}
printk(nlmclnt_alloc_call: failed, waiting for memory\n);
-   current-state = TASK_INTERRUPTIBLE;
-   schedule_timeout(5*HZ);
+   schedule_timeout_interruptible(5*HZ);
}
return NULL;
 }
diff -urpN 2.6.13-rc5-mm1/fs/nfs/nfs3proc.c 2.6.13-rc5-mm1-dev/fs/nfs/nfs3proc.c
--- 2.6.13-rc5-mm1/fs/nfs/nfs3proc.c2005-08-07 09:58:15.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/nfs/nfs3proc.c2005-08-10 15:12:50.0 
-0700
@@ -34,8 +34,7 @@ nfs3_rpc_wrapper(struct rpc_clnt *clnt, 
res = rpc_call_sync(clnt, msg, flags);
if (res != -EJUKEBOX)
break;
-   set_current_state(TASK_INTERRUPTIBLE);
-   schedule_timeout(NFS_JUKEBOX_RETRY_TIME);
+   schedule_timeout_interruptible(NFS_JUKEBOX_RETRY_TIME);
res = -ERESTARTSYS;
} while (!signalled());
rpc_clnt_sigunmask(clnt, oldset);
diff -urpN 2.6.13-rc5-mm1/fs/nfs/nfs4proc.c 2.6.13-rc5-mm1-dev/fs/nfs/nfs4proc.c
--- 2.6.13-rc5-mm1/fs/nfs/nfs4proc.c2005-08-07 09:58:15.0 -0700
+++ 2.6.13-rc5-mm1-dev/fs/nfs/nfs4proc.c2005-08-10 15:15:04.0 
-0700
@@ -2412,14 +2412,11 @@ static int nfs4_delay(struct rpc_clnt *c
*timeout = NFS4_POLL_RETRY_MAX;
rpc_clnt_sigmask(clnt, oldset);
if (clnt-cl_intr) {
-   set_current_state(TASK_INTERRUPTIBLE);
-   schedule_timeout(*timeout);
+  

Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Josh Kelley

Lonnie wrote:

Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/var/tmp/samba-3.0.10-root

error: Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


RPM build errors:
   Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


This /usr/lib/samba/pdb/mysql.so does not exist and if I understnd 
this error then it is saying that it keeps finding it.


Can someone please tell me what is happening here?

RPM builds a tree of files that will go in the final package under a 
temporary directory ($RPM_BUILD_ROOT, identified as 
/var/tmp/samba-3.0.10-root above).  It builds/compiles the package, then 
installs it to this temporary directory, then packages it up according 
to the instructions in your %files section.  The above error means that 
/usr/lib/samba/pdb/mysql.so was installed to this temporary directory 
(as /var/tmp/samba-3.0.10-root/usr/lib/samba/pdb/mysql.so), but it's not 
listed under %files, so RPM doesn't know what to do with it.  Since it's 
a file that you want, the correct solution is to add it to your %files 
section.


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


[Samba] Re: [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Stephen C. Tweedie
Hi,

On Mon, 2005-08-15 at 19:08, Nishanth Aravamudan wrote:

 Description: Use schedule_timeout_{,un}interruptible() instead of
 set_current_state()/schedule_timeout() to reduce kernel size.

 +++ 2.6.13-rc5-mm1-dev/fs/jbd/transaction.c   2005-08-10 15:03:33.0 
 -0700
 @@ -1340,8 +1340,7 @@ int journal_stop(handle_t *handle)
 - set_current_state(TASK_UNINTERRUPTIBLE);
 - schedule_timeout(1);
 + schedule_timeout_uninterruptible(1);

This chunk at least is fine.

--Stephen

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


[Samba] Re: [xfs-masters] [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Nishanth Aravamudan
On 15.08.2005 [20:17:52 +0200], Christoph Hellwig wrote:
 On Mon, Aug 15, 2005 at 11:08:04AM -0700, Nishanth Aravamudan wrote:
  Description: Use schedule_timeout_{,un}interruptible() instead of
  set_current_state()/schedule_timeout() to reduce kernel size. Also use
  helper functions to convert between human time units and jiffies rather
  than constant HZ division to avoid rounding errors.
 
 The XFS changes are still wrong for the same rason as last time,
 we actually do want the daemons to do work if they're woken earlier
 using wake_up_process.

Hrm, I got dropped from the Cc list...? No worries, I'm subscribed in
two places :)

I think your reference to last time is the KJ patches which probably
used msleep{,_interruptible}() instead of schedule_timeout(). This
patchset, in contrast, should result in *no* functional changes (beyond
some more precisie conversions, where appropriate).
schedule_timeout_interruptible(some_value), for instance is nothing more than:

set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(some_value);

Just in the form of a combine function call. No loops like msleep() 
co.

Is the patch still a problem?

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


[Samba] enforcing password compexity (check password script, cracklib)

2005-08-15 Thread Charles McLaughlin

Hello,

I would like to enforce some level of password complexity when users 
change their password.  I have a Samba PDC running on Debian set to sync 
Unix passwords.  I'm trying to get Samba to work with cracklib, but it 
isn't going well.


Here is what I've tried:

Installed libpam-cracklib, compiled examples/auth/crackcheck and copied 
the binary to /usr/local/sbin.


I added the following line to my smb.conf file:

check password script = /usr/local/sbin/crackcheck

Edited /etc/pam.d/common-password to look like this:

password required pam_unix.so nullok obscure min=4 max=8 md5
password required pam_cracklib.so retry=3 minlen=6 difok=3
password required pam_unix.so use_authtok nullok md5

Restarted Samba and tried to change my password from a Windows box and 
smbpasswd.  I get this error when using smbpasswd:


machine 127.0.0.1 rejected the (anonymous) password change: Error was : 
Password restriction.

Failed to change password for cmclaugh

I picked a rather random and strong password, so I believe there is some 
misconfiguration.


I would appreciate any advice.

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


[Samba] logon scripts no longer run with p-node netbios type 2

2005-08-15 Thread Chris
For several days (at least 4) after using DHCP to switch the NetBIOS 
node type from h-node (8) to p-node (2) the systems have worked fine 
(the lease time is only three hours so everyone was affected reasonably 
early).

This morning, however, the logon scripts would not run until I changed 
the node-type back to h-node.

I have found some information regarding timing issues with VPN's but 
this is plain old local logins (server has gigbit nics, going through a 
gigbit switch, clients have 100baseT).

There was one change but I can't really test that until tonight: Samba 
was rebuilt with the hide-special-files patch - 
https://bugzilla.samba.org/show_bug.cgi?id=2514 , which doesn't seem 
like it should cause a problem.

Any other ideas?

Thanks.

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


[Samba] Re: [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Steven French




The cifs ones look fine with me.


Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: [xfs-masters] [-mm PATCH 2/32] fs: fix-up schedule_timeout() usage

2005-08-15 Thread Christoph Hellwig
On Mon, Aug 15, 2005 at 11:40:13AM -0700, Nishanth Aravamudan wrote:
 Hrm, I got dropped from the Cc list...? No worries, I'm subscribed in
 two places :)

I didn't do that manually, must haven some mail header thing.

 I think your reference to last time is the KJ patches which probably
 used msleep{,_interruptible}() instead of schedule_timeout(). This
 patchset, in contrast, should result in *no* functional changes (beyond
 some more precisie conversions, where appropriate).
 schedule_timeout_interruptible(some_value), for instance is nothing more than:
 
   set_current_state(TASK_INTERRUPTIBLE);
   schedule_timeout(some_value);
 
 Just in the form of a combine function call. No loops like msleep() 
 co.
 
 Is the patch still a problem?

No, it's fine.  Sorry for the noise.

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


Re: [Samba] RPM SPEC rebuild errors

2005-08-15 Thread Lonnie

Great News Josh,

That cleared it right up and it compiled with no problems.  Thanks again.

I appreciate all of the help Samba group.

Thanks,

Lonnie Cumberland



Josh Kelley wrote:


Lonnie wrote:

Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/var/tmp/samba-3.0.10-root

error: Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


RPM build errors:
   Installed (but unpackaged) file(s) found:
  /usr/lib/samba/pdb/mysql.so


This /usr/lib/samba/pdb/mysql.so does not exist and if I understnd 
this error then it is saying that it keeps finding it.


Can someone please tell me what is happening here?

RPM builds a tree of files that will go in the final package under a 
temporary directory ($RPM_BUILD_ROOT, identified as 
/var/tmp/samba-3.0.10-root above).  It builds/compiles the package, 
then installs it to this temporary directory, then packages it up 
according to the instructions in your %files section.  The above error 
means that /usr/lib/samba/pdb/mysql.so was installed to this temporary 
directory (as /var/tmp/samba-3.0.10-root/usr/lib/samba/pdb/mysql.so), 
but it's not listed under %files, so RPM doesn't know what to do with 
it.  Since it's a file that you want, the correct solution is to add 
it to your %files section.


Josh Kelley


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


[Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Shawn Wright
I'm building 3.0.14a on Mandrake 10.2, trying to use the same 
config as my other servers (3.0.11), but ACLs are not working. 
In checking the outout of smbd -b, I see this line is missing:

System Headers:
HAVE_SYS_ACL_H


But I am specifying ./configure --with-acl-support ...

Adding an acl using 'setfacl -m 'NTDOMAIN+NTUSER' file 
does successfully add an ACL for the NT domain user at the 
CLI, but Samba won't show it.

Clearly I'm missing a vital piece somewhere, but I'm not sure 
where. This is the first machine with 2.6 kernel (stock kernel so 
far)... could that be the issue?




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Shawn Wright, I.T. Manager
Shawnigan Lake School
http://www.sls.bc.ca
[EMAIL PROTECTED]


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


[Samba] Mounting shares across different networks

2005-08-15 Thread Marvin Bellamy
Newbie alert...I'm not even sure if this is possible,
but curious if this can be done.  I just bought a Dell
(XP home edition) laptop that I use at work and at
home; both networks have Samba shares that I access
wirelessly.

Question: is it possible to script the mounting of
shares based on the wireless network?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Maxime Woznicki

Hello !

Check your kernel config : are ext2/ext3 acl/extended attributes checked 
in fs options ?


Max

Shawn Wright a écrit :

I'm building 3.0.14a on Mandrake 10.2, trying to use the same 
config as my other servers (3.0.11), but ACLs are not working. 
In checking the outout of smbd -b, I see this line is missing:


System Headers:
HAVE_SYS_ACL_H
.

But I am specifying ./configure --with-acl-support ...

Adding an acl using 'setfacl -m 'NTDOMAIN+NTUSER' file 
does successfully add an ACL for the NT domain user at the 
CLI, but Samba won't show it.


Clearly I'm missing a vital piece somewhere, but I'm not sure 
where. This is the first machine with 2.6 kernel (stock kernel so 
far)... could that be the issue?





-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Shawn Wright, I.T. Manager
Shawnigan Lake School
http://www.sls.bc.ca
[EMAIL PROTECTED]


 



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


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Maxime Woznicki

Second point :
Are acl libs/headers installed on your system ?

http://acl.bestbits.at/

Max

Shawn Wright a écrit :

I'm building 3.0.14a on Mandrake 10.2, trying to use the same 
config as my other servers (3.0.11), but ACLs are not working. 
In checking the outout of smbd -b, I see this line is missing:


System Headers:
HAVE_SYS_ACL_H
.

But I am specifying ./configure --with-acl-support ...

Adding an acl using 'setfacl -m 'NTDOMAIN+NTUSER' file 
does successfully add an ACL for the NT domain user at the 
CLI, but Samba won't show it.


Clearly I'm missing a vital piece somewhere, but I'm not sure 
where. This is the first machine with 2.6 kernel (stock kernel so 
far)... could that be the issue?





-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Shawn Wright, I.T. Manager
Shawnigan Lake School
http://www.sls.bc.ca
[EMAIL PROTECTED]


 



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


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Shawn Wright
I thought of that, but the stock kernel config has this:

CONFIG_XFS_FS=m
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y

Just in case, I'm building a new kernel now...

On 16 Aug 2005 at 0:34, Maxime Woznicki wrote:

 Hello !

 Check your kernel config : are ext2/ext3 acl/extended attributes checked
 in fs options ?

 Max

 Shawn Wright a écrit :

 I'm building 3.0.14a on Mandrake 10.2, trying to use the same
 config as my other servers (3.0.11), but ACLs are not working.
 In checking the outout of smbd -b, I see this line is missing:
 
 System Headers:
 HAVE_SYS_ACL_H
 .
 
 But I am specifying ./configure --with-acl-support ...
 
 Adding an acl using 'setfacl -m 'NTDOMAIN+NTUSER' file
 does successfully add an ACL for the NT domain user at the
 CLI, but Samba won't show it.
 
 Clearly I'm missing a vital piece somewhere, but I'm not sure
 where. This is the first machine with 2.6 kernel (stock kernel so
 far)... could that be the issue?
 
 
 
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Shawn Wright, I.T. Manager
 Shawnigan Lake School
 http://www.sls.bc.ca
 [EMAIL PROTECTED]
 
 
 
 



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Shawn Wright, I.T. Manager
Shawnigan Lake School
http://www.sls.bc.ca
[EMAIL PROTECTED]


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


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Shawn Wright
I have the libacl and acl rpms installed, which has been enough for
previous installs on Mandrake 9.2...

On 16 Aug 2005 at 0:38, Maxim


 Second point :
 Are acl libs/headers installed on your system ?

 http://acl.bestbits.at/

 Max

 Shawn Wright a écrit :

 I'm building 3.0.14a on Mandrake 10.2, trying to use the same
 config as my other servers (3.0.11), but ACLs are not working.
 In checking the outout of smbd -b, I see this line is missing:
 
 System Headers:
 HAVE_SYS_ACL_H
 .
 
 But I am specifying ./configure --with-acl-support ...
 
 Adding an acl using 'setfacl -m 'NTDOMAIN+NTUSER' file
 does successfully add an ACL for the NT domain user at the
 CLI, but Samba won't show it.
 
 Clearly I'm missing a vital piece somewhere, but I'm not sure
 where. This is the first machine with 2.6 kernel (stock kernel so
 far)... could that be the issue?
 
 
 
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Shawn Wright, I.T. Manager
 Shawnigan Lake School
 http://www.sls.bc.ca
 [EMAIL PROTECTED]
 
 
 
 



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Shawn Wright, I.T. Manager
Shawnigan Lake School
http://www.sls.bc.ca
[EMAIL PROTECTED]


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


Samba benchmarking tools - was Re: [Samba] Slow sequential write on Samba drive

2005-08-15 Thread Don


Hi all,

So... I still have this problem with slow write speed to a particular 
linux samba server from a Win XP box.  I have a different linux samba 
server that this doesn't happen.  All details have been posted to this 
thread but if  any helpful souls want me to re-summarize I'll be happy 
to :)


I'd still like to try to attack this problem.  I have a particular tool 
(this www.passmark.com download) that I am using to test the write speed 
from the Win XP box.  What I'd like to know is how do other people out 
there benchmark their samba systems to verify its working correctly as 
far as performance goes?  Is there any code out there to do this kind of 
benchmarking, either Linux or Windows?


I have several linux boxes and windows boxes that I can use to test.  
What I'm wondering I'd like to do is narrow down the problem.  I.e. 
discover the performance against servers with different installations 
and different hardware.  It could be the problem I'm running into is a 
hardware problem, but I'd just like to find some tools that could help 
me narrow that down.


Thanks in advance,
Don



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


[Samba] JPG Wallpaper

2005-08-15 Thread Liew Toh Seng

Hi list,

   I've problem with JPG wallpaper, it never sync to my roaming 
profile. When logon to the next PC, right click properties on desktop, 
the setting is there but it never show the wallpaper. Anyone know why 
it's like that.

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


[Samba] samba and ip

2005-08-15 Thread Scott Mayo
I have a Samba and LDAP network setup.  I needed to change the IP 
address of my Samba server.  I changed the address from 10.0.0.51 to 
10.0.0.50.  I just edited the /etc/sysconfig/network-scripts/ifcfg_eth0. 
 Now I cannot get any XP machines to join the domain.  The machine name 
is already in the database.  I made sure my /etc/hosts file did not 
correspond to the old ip.  I can still logon with machines that had been 
added previously, just not add a new one.  If I change the IP back to 
10.0.0.51, then everything functions correctly.  Anything else that I 
should look for?

Thanks.
--
Scott Mayo
Technology Coordinator
Bloomfield Schools
PH: 573-568-5669
FA: 573-568-4565
Pager: 800-264-2535 X2549

Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Domain Based Logon

2005-08-15 Thread Liew Toh Seng

Hi,

   Can I prevent the user only can login to one PC if he/she didn't 
logout ? Can I store the winxp's system configuration to roaming profile 
? Let says I've changed the screen resolution to 800x600, it only effect 
the pc that I've done the setting on. When I login to the next PC, it 
never use the setting. Anyway to solve this problem ?

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


[Samba] One more samba

2005-08-15 Thread Scott Mayo
Ok, I seem to have everything back to normal, except for one thing that 
seems strange to me.  I have 3 samba servers going for my domain, all 
using the LDAP database for usernames.  I have my logon script that maps 
drives according to the groups that the users are in.  I put the 
logonscript on each of the servers.  I was assuming that whichever 
server accepted the logon, that would be the computer that creates the 
logon script.  I noticed that two of the computers are actually creating 
this file.


If I do a 'smbstatus -p' on either machine, it shows the user logged 
into both.  Is the what should be happening?  the drives look like they 
map correctly.


--
Scott Mayo
Technology Coordinator
Bloomfield Schools
PH: 573-568-5669
FA: 573-568-4565
Pager: 800-264-2535 X2549

Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: JPG Wallpaper

2005-08-15 Thread Rex Dieter

Liew Toh Seng wrote:

   I've problem with JPG wallpaper, it never sync to my roaming profile. 
When logon to the next PC, right click properties on desktop, the 
setting is there but it never show the wallpaper. Anyone know why it's 
like that.


Non-bmp files get converted to *.bmp format, and stored in 
%USERPROFILE%/Local Settings/Temp (and Local Settings doesn't roam).  If 
you want your wallpaper to stay between logins, you need to use only bmp 
files.


-- Rex

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


[Samba] Windows C# unable to access Samba directories.

2005-08-15 Thread PC
We have written a program which queries Windows mounted drives (including
Samba mounts) for files and directories.

 

The program cannot find folders which are not owned by the user who spawned
the application.  The user belongs to the group (owner - group - others)
with rw permissions and can locate all files and folders via Windows
Explorer.

 

It appears that Samba is unable to resolve the group permission for some
windows applications.

 

A similar problem can also be demonstrated when using Windows Offline files
/ folder capability on a Samba mounted drive.  Synchronizing offline file
will fail unless all files and folders are owned by  the user who spawned
the application.

 

Any clues?

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


Re: [Samba] Windows C# unable to access Samba directories.

2005-08-15 Thread Jeremy Allison
On Mon, Aug 15, 2005 at 11:20:56PM -0400, PC wrote:
 We have written a program which queries Windows mounted drives (including
 Samba mounts) for files and directories.
 
  
 
 The program cannot find folders which are not owned by the user who spawned
 the application.  The user belongs to the group (owner - group - others)
 with rw permissions and can locate all files and folders via Windows
 Explorer.
 
  
 
 It appears that Samba is unable to resolve the group permission for some
 windows applications.
 
  
 
 A similar problem can also be demonstrated when using Windows Offline files
 / folder capability on a Samba mounted drive.  Synchronizing offline file
 will fail unless all files and folders are owned by  the user who spawned
 the application.

Can you send out the code/binary for the application with help on how
to reproduce the problem so we can test this for you ?

Thanks,

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


Re: [Samba] logon scripts no longer run with p-node netbios type 2

2005-08-15 Thread Chris
On Monday 15 August 2005 04:40 pm, Chris wrote:
 There was one change but I can't really test that until tonight:
 Samba was rebuilt with the hide-special-files patch -
 https://bugzilla.samba.org/show_bug.cgi?id=2514 , which doesn't seem
 like it should cause a problem.

Rebuilt the previous version of 14a without the above patch. No change 
(the problem isn't caused by hide-special-files patch).

I'm guessing that the netbios name cache gets depleted after a time when 
using p-node and that exists a timing issue where the WINS server 
cannot respond on a timely basis.

Can anyone verify?
What materials can I provide in order to get a fix?
Should this be filed with bugzilla?

Thank you.

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


[Samba] Re: Samba-3.0.10 domain issue

2005-08-15 Thread Alexandre Gonçalves Jacarandá
 Are the netbios names the same for all OSes or different?
If we have 2 nics A and B, what kind of issue it could have if I start a config 
with A, then turn to B ?

Thanks, Alexandre.

---
Alexandre Gonçalves Jacarandá
Assessor de Tecnologia de Informação
Tel.: 0 ** 21 8131-2313

Alguns caminham pelo arco,
eu caminho pela reta.



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


Re: [Samba] logon scripts no longer run with p-node netbios type 2

2005-08-15 Thread Chris
The Samba log for the system:

using h-node starting at logon time:
[2005/08/15 23:31:03, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service netlogon initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:03, 1] smbd/service.c:close_cnum(830)
  h2s04 (192.168.1.12) closed connection to service netlogon
[2005/08/15 23:31:03, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service smythe initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:03, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service netlogon initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:04, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service smythe initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service cdImages initially as user 
smythe (uid=637, gid=446) (pid 12088)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service kwlibrary initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service projects initially as user 
smythe (uid=637, gid=446) (pid 12088)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service ad2 initially as user smythe 
(uid=637, gid=444) (pid 12088)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service print$ initially as user 
smythe (uid=637, gid=100) (pid 12089)
[2005/08/15 23:31:06, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service kwlibrary initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:07, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service projects initially as user 
smythe (uid=637, gid=446) (pid 12088)
[2005/08/15 23:31:07, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service ad2 initially as user smythe 
(uid=637, gid=444) (pid 12088)
[2005/08/15 23:31:07, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service print$ initially as user 
smythe (uid=637, gid=100) (pid 12088)
[2005/08/15 23:31:08, 1] smbd/ipc.c:api_fd_reply(290)
  api_fd_reply: INVALID PIPE HANDLE: 709a

I don't know what the INVALID PIPE HANDLE is all about but notice the 
immediate connection to the netlogon service.

using p-node starting at logon time:
[2005/08/15 23:33:49, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service smythe initially as user 
smythe (uid=637, gid=100) (pid 12625)
[2005/08/15 23:33:50, 1] smbd/service.c:make_connection_snum(642)
  h2s04 (192.168.1.12) connect to service smythe initially as user 
smythe (uid=637, gid=100) (pid 12625)
[2005/08/15 23:33:50, 1] smbd/service.c:close_cnum(830)
  h2s04 (192.168.1.12) closed connection to service smythe
[2005/08/15 23:33:51, 1] smbd/service.c:make_connection_snum(642)

With p-node there is no connection to the netlogon service when logging 
in.

I have reverted any changes, yet the problem persists. WINS appears to 
be working fine, yet all of a sudden p-node will no longer connect to 
the netlogon service.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Doug VanLeuven

Shawn Wright wrote:
I have the libacl and acl rpms installed, which has been enough for 
previous installs on Mandrake 9.2...


Check for libacl-devel

Need that for the include files.

Regards, Doug

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


Re: [Samba] Missing 'HAVE_SYS_ACL_H'

2005-08-15 Thread Shawn Wright
On 15 Aug 2005 at 20:51, Doug VanLeuven wrote:

 Shawn Wright wrote:
  I have the libacl and acl rpms installed, which has been enough for 
  previous installs on Mandrake 9.2...
 
 Check for libacl-devel
 
 Need that for the include files.

Thanks, Doug. That's it. Something must have changed in the package options 
for 10.2 from 9.2. I'll add that and try again. Maybe I can resolve my ACL 
recursion problem now...

--
Shawn Wright
I.T. Manager
Shawnigan Lake School


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


Re: [Samba] logon scripts no longer run with p-node netbios type 2

2005-08-15 Thread Chris
Apparent user mind loss issue
p-node works fine as long as you don't disable NetBIOS over TCP/IP, 
seems I did both at the same time..will sleep now...for many hours
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Samba 2.2.8 on MultiNet

2005-08-15 Thread Richard Whalen

The following commands will configure SMBD properly on MultiNet:

$ multinet config/servers
Add smbd
tcp
139
samba_root:[bin]smbd_Startup.com
select smbd
set flags ucx_Server
write
exit

--
Richard Whalen
Process Software

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


Samba 2.2.8 on TCPware

2005-08-15 Thread bradhamilton

For those of you who wish to configure SMBD using TCPware:

$ netcu add service 139 bg_tcp -
  /user=SYSTEM -
  /process=SMBD -
  /input=SAMBA_ROOT:[BIN]SMBD_STARTUP.COM

I've not found anything equivalent to set flags ucx_Server on TCPware, 
but SAMBA seems to work fine, anyway.	:-)

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


listas de emails por atividade

2005-08-15 Thread joseantoniokj4_dq
emails para mala direta dividida por sexo emails para mala direta dividida por 
sexo e-mails para mala direta por atividade:

http://www.segmails.vze.com
ou
http://www.vendemails.cjb.net
ou
http://geocities.yahoo.com.br/webneggocios/listagemnova.htm

listagem mala publicidade mails e-mails para mala direta por atividade listas 
de emails por atividade emails para mala direta dividida por sexo e-mails para 
mala direta dividida por sexo:

Visite qualquer um dos 3 links abaixo

http://www.segmails.vze.com
ou
http://www.vendemails.cjb.net
ou
http://geocities.yahoo.com.br/webneggocios/listagemnova.htm

Listas para mala direta por e-mail e-mails para mala direta por atividade 
emails 
para mala direta dividida por sexo envio listagens seu
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


svn commit: lorikeet r420 - in trunk/sangria/src/LatestDesign: classes classes/ServerObjects classes/UserPrivileges test

2005-08-15 Thread amit
Author: amit
Date: 2005-08-15 17:18:42 + (Mon, 15 Aug 2005)
New Revision: 420

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

Log:
class UserPrivileges added . Methods to start , restart and stop the daemons 
aka server added in ServerClass.py
Added:
   trunk/sangria/src/LatestDesign/classes/UserPrivileges/
   trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py
Modified:
   trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py
   trunk/sangria/src/LatestDesign/test/test.py


Changeset:
Modified: trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py
===
--- trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py 
2005-08-15 02:14:38 UTC (rev 419)
+++ trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py 
2005-08-15 17:18:42 UTC (rev 420)
@@ -112,10 +112,7 @@
 return p_list
 else:
 return None
-
-
-
-
+   
 
 def ListOptionsInShare(self , shareName):
 return self.Parser.services[string.upper(shareName)]['_order_']
@@ -192,41 +189,46 @@
 
 
 def RefreshServer(self):
-   ''' to be implemented at last '''
-pass
+   cmd = smbcontrol smbd reload-config
+( status, cmd_output ) = commands.getstatusoutput( cmd )
+if status:
+return 0
+return 1
+
+
+def StopDaemon(self , Daemon):
+
+cmd = pidof %s%Daemon 
+( status, cmd_output ) = commands.getstatusoutput( cmd )
+daemon_pids = string.split( cmd_output )
 
-def RestartServer(self):
-self.StopServers()
-self.StartServers()
+for pid in daemon_pids:
+cmd = kill -9 %s %pid
+commands.getstatusoutput( cmd )
+
+def StartDaemon(self , Daemon):
 
-def StopServers(self):
+cmd = %s/%s -D%(self.ServerPath , Daemon)
+( status, cmd_output ) = commands.getstatusoutput( cmd )
+if status:
+return 0
+return 1
+
 
-list_of_commands = []
-list_of_commands.append(%s/smbd stop %self.ServerPath)
-list_of_commands.append(%s/smbd stop %self.ServerPath)
-list_of_commands.append(%s/winbindd stop%self.ServerPath)
+def StopServer(self):
 
-for cmd1 in list_of_commands:
-( status, cmd_output ) = commands.getstatusoutput( cmd1 )
-if status:
-print cmd_output
-return 0
-return 1
+for daemon in ['smbd' , 'nmbd' , 'winbindd']:  
+self.StopDaemon(daemon)
+
+def StartServer(self):
+for daemon in ['smbd' , 'nmbd' , 'winbindd']:  
+self.StartDaemon(daemon)
 
-def StartServers(self):
-list_of_commands = []
-list_of_commands.append(%s/smbd start  %self.ServerPath)
-list_of_commands.append(%s/smbd start  %self.ServerPath)
-list_of_commands.append(%s/winbindd start  %self.ServerPath)
+def RestartServer(self):
+self.StopServer()
+self.StartServer()
+
 
-for cmd1 in list_of_commands:
-( status, cmd_output ) = commands.getstatusoutput( cmd1 )
-if status:
-print cmd_output
-return 0
-return 1
-
-
 def RemoveShare(self, delShareName ):
 ''' the sharename is supplied as input '''
 if not self.Parser.isService(delShareName):
@@ -258,10 +260,10 @@
 ( status, cmd_output ) = commands.getstatusoutput( cmd )
 output_list = string.split(cmd_output,'\n')
 if status:
-output_list.append( Error in Server Configuration )
+output_list.append(font color = red Error in Server 
Configuration /font)
 return output_list
 else:
-output_list.append( Congratulations !   Server  Tested  OK)
+output_list.append(font color = red Congratulations !   Server  
Tested  OK /font)
 return output_list
 
 def CleanGlobalParameters(self , ParamList ):
@@ -341,7 +343,8 @@
 
 # here we have to ensure that the server also joins the domain 
 net join -Uroot%djlajf
 self.CommitChanges()
-self.RestartServer() 
+self.RestartServer()
+
 # now join the domain .. ExtraParamTupleList would be having the 
necessary details for domain joining 
 
 if 'WORKGROUP' in self.ListOptionsInShare('GLOBAL'):

Added: 
trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py
===
--- 
trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py
2005-08-15 02:14:38 UTC (rev 419)
+++ 

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

2005-08-15 Thread jht
Author: jht
Date: 2005-08-15 17:40:57 + (Mon, 15 Aug 2005)
New Revision: 791

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

Log:
Updating RID information.
Modified:
   trunk/Samba3-HOWTO/TOSHARG-PDC.xml


Changeset:
Modified: trunk/Samba3-HOWTO/TOSHARG-PDC.xml
===
--- trunk/Samba3-HOWTO/TOSHARG-PDC.xml  2005-08-05 22:48:24 UTC (rev 790)
+++ trunk/Samba3-HOWTO/TOSHARG-PDC.xml  2005-08-15 17:40:57 UTC (rev 791)
@@ -105,6 +105,34 @@
 organizational access control. UNIX systems recognize only local security 
identifiers.
 /para
 
+para
+indextermprimarySID/primary/indexterm
+A SID represents a security context. For example, every Windows machine has 
local accounts within the security
+context of the local machine which has a unique SID. Every domain (NT4, ADS, 
Samba) contains accounts that
+exist within the domain security context which is defined by the domain SID.
+/para
+
+para
+indextermprimarySID/primary/indexterm
+indextermprimaryRID/primary/indexterm
+A domain member server will have a SID that differs from the domain SID.  The 
domain member server can be
+configured to regard all domain users as local users. It can also be 
configured to recognize domain users and
+groups as non-local. SIDs are persistent. A typical domain of user SID looks 
like this:
+screen
+S-1-5-21-726309263-4128913605-1168186429
+/screen
+Every account (user, group, machine, trust, etc.) is assigned a RID. This is 
done automatically as an account
+is created. Samba produces the RID algorithmically. The UNIX operating system 
uses a separate name space for
+user and group identifiers (the UID and GID) but Windows allocates the RID 
from a single name space. A Windows
+user and a Windows group can not have the same RID. Just as the UNIX user 
literalroot/literal has the
+UID=0, the Windows Administrator has the well-known RID=500. The RID is 
catenated to the Windows domain SID,
+so Administrator account for a domain that has the above SID will have the 
user SID
+screen
+S-1-5-21-726309263-4128913605-1168186429-500
+/screen
+The result is that every all accounts in the Windows networking world have a 
globally unique security identifier.
+/para
+
 notepara
 indextermprimarydomain/primarysecondarymember/secondary/indexterm
 indextermprimarymachine account/primary/indexterm



svn commit: lorikeet r421 - in trunk/sangria/src/LatestDesign: classes/AccountManager test

2005-08-15 Thread amit
Author: amit
Date: 2005-08-15 18:11:12 + (Mon, 15 Aug 2005)
New Revision: 421

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

Log:
Class added for handling Machine Trust Accounts
Added:
   
trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py
Modified:
   trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py
   trunk/sangria/src/LatestDesign/test/test.py


Changeset:
Modified: 
trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py
===
--- 
trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py
2005-08-15 17:18:42 UTC (rev 420)
+++ 
trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py
2005-08-15 18:11:12 UTC (rev 421)
@@ -4,26 +4,6 @@
 
 
 
-class UserPrivileges:
-
-def __init__(self, UserName):
-self.UserName = UserName
-
-def SetUserRight(self, Right):
-'''
-Here we fix up the privileges for the user .. (self.UserName)
-here code to set the right
-but before proceeding it sould be clear that server had to be set 
to
-
-enable privileges = yes
-and restarted ..
-
-do that in INIT ...
-'''
-pass
-
-
-
 class User:
 
 def SetPassword(self, UserPassword):

Added: 
trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py
===
--- 
trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py
   2005-08-15 17:18:42 UTC (rev 420)
+++ 
trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py
   2005-08-15 18:11:12 UTC (rev 421)
@@ -0,0 +1,29 @@
+
+import sys,os,commands
+import string
+
+
+class MachineTrustAccount:
+
+def __init__(self):
+pass
+
+def AddMachineAccount(self , ClientMachineName , UnixGroupToJoin , 
UnixPassword , SmbPassword):
+
+''' ClientMachineName = NetBIOS name '''
+
+cmd = useradd -p \%s\ -g \%s\ -d /dev/null -c \%s\ -s 
/bin/false \%s$\ %( UnixPassword , UnixGroupToJoin , ClientMachineName , 
ClientMachineName)
+print cmd
+( status, cmd_output ) = commands.getstatusoutput( cmd )
+if status:
+print here
+return 0
+
+## fix up samba password
+
+cmd = smbpasswd -a -m \%s\ %(ClientMachineName)
+( status, cmd_output ) = commands.getstatusoutput( cmd )
+if status:
+return 0
+
+return 1

Modified: trunk/sangria/src/LatestDesign/test/test.py
===
--- trunk/sangria/src/LatestDesign/test/test.py 2005-08-15 17:18:42 UTC (rev 
420)
+++ trunk/sangria/src/LatestDesign/test/test.py 2005-08-15 18:11:12 UTC (rev 
421)
@@ -16,6 +16,8 @@
 from AccountManagerClass import SambaUser
 from GroupManagerClass import GroupManager
 
+from MachineTrustAccountClass import MachineTrustAccount
+
 from UserPrivilegesClass import UserPrivileges
 
 
@@ -25,8 +27,13 @@
 
 s = Server(/home/amit/test/smb.conf , /usr/sbin/)
 
-s.RestartServer()
+# add machine trust account
 
+m = MachineTrustAccount()
+ret = m.AddMachineAccount('teromachine' , 'helohelo' , 'regmi' , 
'sambaregmi')
+print ret
+##s.RestartServer()
+
 ##priv = UserPrivileges(s)
 ##priv.GrantUserPrivilege(pant , root , amit , 
SeMachineAccountPrivilege)
 



svn commit: samba r9307 - in trunk/source: rpc_parse rpc_server

2005-08-15 Thread jra
Author: jra
Date: 2005-08-15 22:17:16 + (Mon, 15 Aug 2005)
New Revision: 9307

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

Log:
This code now accepts type 9 (SPNEGO) binds and generates a correct
intermediate response, but not a correct final responce. I think I
need to make the sign+seal code work with the new ntlmssp code before
proceeding.
Jeremy.

Modified:
   trunk/source/rpc_parse/parse_rpc.c
   trunk/source/rpc_server/srv_pipe.c
   trunk/source/rpc_server/srv_pipe_hnd.c


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


svn commit: samba r9308 - in branches/SOC/SAMBA_3_0/source: include libmsrpc

2005-08-15 Thread skel
Author: skel
Date: 2005-08-15 23:05:15 + (Mon, 15 Aug 2005)
New Revision: 9308

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

Log:
added cac_SamAddGroupMember() and cac_SamRemoveGroupMember(). 
Fixed cac_GetGroupMembers() so it actually compiles now.

Modified:
   branches/SOC/SAMBA_3_0/source/include/libmsrpc.h
   branches/SOC/SAMBA_3_0/source/libmsrpc/cac_samr.c


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


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

2005-08-15 Thread sfrench
Author: sfrench
Date: 2005-08-15 23:15:59 + (Mon, 15 Aug 2005)
New Revision: 9309

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

Log:
Incorrect null pointer check in return from talloc.

Found by coverity.

Modified:
   branches/SAMBA_4_0/source/libnet/domain.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/domain.c
===
--- branches/SAMBA_4_0/source/libnet/domain.c   2005-08-15 23:05:15 UTC (rev 
9308)
+++ branches/SAMBA_4_0/source/libnet/domain.c   2005-08-15 23:15:59 UTC (rev 
9309)
@@ -177,7 +177,7 @@
if (c == NULL) goto failure;
 
s = talloc_zero(c, struct domain_open_state);
-   if (c == NULL) goto failure;
+   if (s == NULL) goto failure;
 
c-state   = SMBCLI_REQUEST_SEND;
c-private = s;



svn commit: lorikeet r422 - in trunk/heimdal: . kdc lib/krb5 lib/roken

2005-08-15 Thread abartlet
Author: abartlet
Date: 2005-08-15 23:39:22 + (Mon, 15 Aug 2005)
New Revision: 422

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

Log:
Update to Heimdal CVS at 2005-08-15

Modified:
   trunk/heimdal/ChangeLog
   trunk/heimdal/kdc/kdc_locl.h
   trunk/heimdal/kdc/kerberos5.c
   trunk/heimdal/kdc/pkinit.c
   trunk/heimdal/kdc/process.c
   trunk/heimdal/lib/krb5/fcache.c
   trunk/heimdal/lib/krb5/init_creds_pw.c
   trunk/heimdal/lib/krb5/krb5_create_checksum.3
   trunk/heimdal/lib/krb5/krb5_get_init_creds.3
   trunk/heimdal/lib/krb5/krb5_keytab.3
   trunk/heimdal/lib/krb5/pkinit.c
   trunk/heimdal/lib/krb5/test_mem.c
   trunk/heimdal/lib/roken/ChangeLog
   trunk/heimdal/lib/roken/getaddrinfo-test.c


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


svn commit: samba r9310 - in branches/SAMBA_4_0/source/kdc: .

2005-08-15 Thread sfrench
Author: sfrench
Date: 2005-08-15 23:52:15 + (Mon, 15 Aug 2005)
New Revision: 9310

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

Log:
Add two missing return statements after null pointer checks to fix potential 
oops in kdc code.
Found by coverity.

Modified:
   branches/SAMBA_4_0/source/kdc/hdb-ldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/hdb-ldb.c
===
--- branches/SAMBA_4_0/source/kdc/hdb-ldb.c 2005-08-15 23:15:59 UTC (rev 
9309)
+++ branches/SAMBA_4_0/source/kdc/hdb-ldb.c 2005-08-15 23:52:15 UTC (rev 
9310)
@@ -644,6 +644,7 @@
if (!spnmappings || spnmappings-num_values == 0) {
krb5_warnx(context, ldb_search: dn: %s no sPNMappings 
attribute, service_dn);
krb5_set_error_string(context, ldb_search: dn: %s no 
sPNMappings attribute, service_dn);
+   return HDB_ERR_NOENTRY;
}
 
for (i = 0; i  spnmappings-num_values; i++) {
@@ -664,6 +665,7 @@
   service_dn, mapping);
krb5_set_error_string(context, ldb_search: dn: %s 
sPNMapping malformed: %s, 
  service_dn, mapping);
+   return HDB_ERR_NOENTRY;
}
p[0] = '\0';
p++;



Build status as of Tue Aug 16 00:00:01 2005

2005-08-15 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2005-08-15 
00:00:08.0 +
+++ /home/build/master/cache/broken_results.txt 2005-08-16 00:00:12.0 
+
@@ -1,17 +1,17 @@
-Build status as of Mon Aug 15 00:00:02 2005
+Build status as of Tue Aug 16 00:00:01 2005
 
 Build counts:
 Tree Total  Broken Panic 
-ccache   36 6  0 
-distcc   36 5  0 
-lorikeet-heimdal 34 23 0 
-ppp  23 2  0 
-rsync35 2  0 
+ccache   37 6  0 
+distcc   37 5  0 
+lorikeet-heimdal 35 22 0 
+ppp  24 2  0 
+rsync36 2  0 
 samba0  0  0 
 samba-docs   0  0  0 
-samba4   42 16 0 
-samba_3_037 4  0 
-smb-build33 4  0 
-talloc   35 11 0 
-tdb  35 15 0 
+samba4   42 15 0 
+samba_3_037 3  0 
+smb-build34 4  0 
+talloc   36 11 0 
+tdb  36 15 0 
 


svn commit: samba r9311 - in branches/SAMBA_4_0/source/lib/appweb/ejs: .

2005-08-15 Thread sfrench
Author: sfrench
Date: 2005-08-16 00:01:25 + (Tue, 16 Aug 2005)
New Revision: 9311

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

Log:
Missing  null pointer check in ejsLib

Found by coverity

Modified:
   branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c
===
--- branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c   2005-08-15 23:52:15 UTC 
(rev 9310)
+++ branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c   2005-08-16 00:01:25 UTC 
(rev 9311)
@@ -327,7 +327,8 @@
  * Error return
  */
 error:
-   *emsg = mprStrdup(ep-error);
+   if(emsg)
+   *emsg = mprStrdup(ep-error);
return -1;
 }
 



svn commit: samba r9312 - in branches/SOC/SAMBA_3_0/source: include libmsrpc

2005-08-15 Thread skel
Author: skel
Date: 2005-08-16 01:40:48 + (Tue, 16 Aug 2005)
New Revision: 9312

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

Log:
added functions to add/remove/clear/set group members (untested)


Modified:
   branches/SOC/SAMBA_3_0/source/include/libmsrpc.h
   branches/SOC/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c
   branches/SOC/SAMBA_3_0/source/libmsrpc/cac_samr.c


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


svn commit: samba r9313 - in branches/SOC/SAMBA_4_0: . source/build/pidl/Parse/Pidl/Samba source/build/pidl/Parse/Pidl/Samba/NDR source/heimdal source/heimdal/cf source/heimdal/lib/asn1 source/heimdal

2005-08-15 Thread brad
Author: brad
Date: 2005-08-16 01:47:18 + (Tue, 16 Aug 2005)
New Revision: 9313

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

Log:
 [EMAIL PROTECTED]:  j0j0 | 2005-08-15 19:55:09 -0600
  [EMAIL PROTECTED]:  j0j0 | 2005-08-15 19:53:45 -0600
   [EMAIL PROTECTED] (orig r9257):  metze | 2005-08-12 03:05:09 -0600
   - I assume we don't need unistd.h in this file,
 that sould fixes the build on aix
   - use  instead of  for includes in our tree
   
   metze
   
   [EMAIL PROTECTED] (orig r9258):  metze | 2005-08-12 03:20:32 -0600
   return is only supported in function, not in plain shell scripts
   
   metze
   
   [EMAIL PROTECTED] (orig r9259):  metze | 2005-08-12 03:31:06 -0600
   ignore more files
   
   metze
   
   [EMAIL PROTECTED] (orig r9260):  metze | 2005-08-12 03:51:40 -0600
   only overwrite destination files when the temp files was created correct
   
   metze
   
   [EMAIL PROTECTED] (orig r9279):  tpot | 2005-08-12 16:55:53 -0600
   In Samba3 debuglevel 10 used to print RPC debugs.  I think this should
   apply to Samba4 as well so change the DEBUGLEVEL  10 to DEBUGLEVEL = 10.
   
   [EMAIL PROTECTED] (orig r9284):  tpot | 2005-08-12 17:01:57 -0600
   Whitespace.  (-:
   
   [EMAIL PROTECTED] (orig r9291):  tpot | 2005-08-12 19:15:32 -0600
   Add a stub for smb_raw_lpq() which is in smb_interfaces.h but doesn't 
   seem to be used anywhere yet.
   
   [EMAIL PROTECTED] (orig r9292):  tpot | 2005-08-12 19:42:14 -0600
   More compiles fixes for autogenerated smb_interfaces ejs wrappers.
   
   Add some code to try and work out whether a smb_interface requires a
   TALLOC_CTX in the function signature.  I'm not sure whether this is
   going to work as the raw api is a bit inconsistent I think.
   
   [EMAIL PROTECTED] (orig r9295):  tpot | 2005-08-12 20:40:02 -0600
   Tridge had some good suggestions for simplifying the smb_interfaces ejs
   code.  I will try and get just the push/pull functions working rather than
   getting in a mess with trying to do everything at once.
   
   [EMAIL PROTECTED] (orig r9296):  tpot | 2005-08-12 20:47:14 -0600
   Reinstate generation of push/pull functions for each field in a struct
   or union.
   
   [EMAIL PROTECTED] (orig r9297):  tpot | 2005-08-12 20:59:56 -0600
   Add a NDR_CHECK() around each ejs push/pull.
   
   Some experimentation with the top level function calls.
   
   [EMAIL PROTECTED] (orig r9298):  tridge | 2005-08-12 21:14:47 -0600
   pull non-array elements before array elements to overcome the problem
   of arrays that have length_is() or size_is() properties that refer to
   later elements
   
   [EMAIL PROTECTED] (orig r9299):  tridge | 2005-08-12 21:16:03 -0600
   fixed the evaluation of pointer expressions that evaluate to boolean
   
   [EMAIL PROTECTED] (orig r9300):  tridge | 2005-08-12 21:17:18 -0600
   cope with zero length in ndr_pull_charset()
   
   
   [EMAIL PROTECTED] (orig r9305):  abartlet | 2005-08-14 19:38:21 -0600
   Use the check-var.m4 from roken to really, really detect h_errno correctly.
   
   This fixes the build on Fedora Core 4.
   
   Andrew Bartlett
   
   [EMAIL PROTECTED] (orig r9309):  sfrench | 2005-08-15 17:15:59 -0600
   Incorrect null pointer check in return from talloc.
   
   Found by coverity.
   
   [EMAIL PROTECTED] (orig r9310):  sfrench | 2005-08-15 17:52:15 -0600
   Add two missing return statements after null pointer checks to fix potential 
oops in kdc code.
   Found by coverity.
   
   [EMAIL PROTECTED] (orig r9311):  sfrench | 2005-08-15 18:01:25 -0600
   Missing  null pointer check in ejsLib
   
   Found by coverity
   
  
 

Added:
   branches/SOC/SAMBA_4_0/source/heimdal/cf/
   branches/SOC/SAMBA_4_0/source/heimdal/cf/check-var.m4
   branches/SOC/SAMBA_4_0/source/libcli/raw/rawlpq.c
Modified:
   branches/SOC/SAMBA_4_0/
   branches/SOC/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/EJS.pm
   branches/SOC/SAMBA_4_0/source/build/pidl/Parse/Pidl/Samba/NDR/Server.pm
   branches/SOC/SAMBA_4_0/source/heimdal/lib/asn1/
   branches/SOC/SAMBA_4_0/source/heimdal/lib/gssapi/
   branches/SOC/SAMBA_4_0/source/heimdal/lib/hdb/
   branches/SOC/SAMBA_4_0/source/heimdal_build/config.m4
   branches/SOC/SAMBA_4_0/source/heimdal_build/krb5-types.h
   branches/SOC/SAMBA_4_0/source/kdc/hdb-ldb.c
   branches/SOC/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c
   branches/SOC/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c
   branches/SOC/SAMBA_4_0/source/libcli/config.mk
   branches/SOC/SAMBA_4_0/source/libnet/domain.c
   branches/SOC/SAMBA_4_0/source/librpc/ndr/ndr_string.c
   branches/SOC/SAMBA_4_0/source/rpc_server/winreg/README
   branches/SOC/SAMBA_4_0/source/script/build_smb_interfaces.pl
   branches/SOC/SAMBA_4_0/source/script/lex_compile.sh
   branches/SOC/SAMBA_4_0/source/script/yacc_compile.sh


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


svn commit: samba r9314 - in branches/SOC/SAMBA_4_0: . source/libnet source/torture/rpc

2005-08-15 Thread brad
Author: brad
Date: 2005-08-16 01:53:20 + (Tue, 16 Aug 2005)
New Revision: 9314

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

Log:
 [EMAIL PROTECTED]:  j0j0 | 2005-08-15 20:01:21 -0600
 libnet_JoinDomain() should honour LIBNET_JOIN_TORTURE now. 
 torture_join_domain() should properly use libnet_JoinDomain().
 dssync.c uses torture_join_domain() again.

Modified:
   branches/SOC/SAMBA_4_0/
   branches/SOC/SAMBA_4_0/source/libnet/libnet_join.c
   branches/SOC/SAMBA_4_0/source/libnet/libnet_join.h
   branches/SOC/SAMBA_4_0/source/torture/rpc/dssync.c
   branches/SOC/SAMBA_4_0/source/torture/rpc/testjoin.c


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


svn commit: samba r9315 - in branches/SOC/SAMBA_3_0/source: include libmsrpc libmsrpc/test libmsrpc/test/sam

2005-08-15 Thread skel
Author: skel
Date: 2005-08-16 04:05:24 + (Tue, 16 Aug 2005)
New Revision: 9315

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

Log:
added samgroup which test the group functions.

modifed cac_SamClearGroupMembers() to take a POLICY_HND directly.


Added:
   branches/SOC/SAMBA_3_0/source/libmsrpc/test/sam/samgroup.c
Modified:
   branches/SOC/SAMBA_3_0/source/include/libmsrpc.h
   branches/SOC/SAMBA_3_0/source/libmsrpc/cac_samr.c
   branches/SOC/SAMBA_3_0/source/libmsrpc/test/Makefile
   branches/SOC/SAMBA_3_0/source/libmsrpc/test/sam/samenum.c


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


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

2005-08-15 Thread jra
Author: jra
Date: 2005-08-16 05:06:33 + (Tue, 16 Aug 2005)
New Revision: 9316

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

Log:
You know it's arc4, *I* know it's arc4. Stop trying to pretend it isn't
and start to unify all the silly little arc4 implementations we have
scattered everywhere - will help when I tidy up the RPC sign+seal code.
Jeremy.

Modified:
   trunk/source/libsmb/smbdes.c


Changeset:
Modified: trunk/source/libsmb/smbdes.c
===
--- trunk/source/libsmb/smbdes.c2005-08-16 04:05:24 UTC (rev 9315)
+++ trunk/source/libsmb/smbdes.c2005-08-16 05:06:33 UTC (rev 9316)
@@ -357,78 +357,81 @@
 des_crypt56(out + 8, in + 8, key2, forw);
 }
 
-void SamOEMhash( unsigned char *data, const unsigned char *key, int val)
+/*
+ Initialize state for an arc4 crypt/decrpyt.
+ arc4 state is 258 bytes - last 2 bytes are the index bytes.
+*/
+
+void smb_arc4_init(unsigned char arc4_state_out[258], const unsigned char 
*key, size_t keylen)
 {
-   unsigned char s_box[256];
-   unsigned char index_i = 0;
-   unsigned char index_j = 0;
+   size_t ind;
unsigned char j = 0;
-   int ind;
 
for (ind = 0; ind  256; ind++) {
-   s_box[ind] = (unsigned char)ind;
+   arc4_state_out[ind] = (unsigned char)ind;
}
 
for( ind = 0; ind  256; ind++) {
unsigned char tc;
 
-   j += (s_box[ind] + key[ind%16]);
+   j += (arc4_state_out[ind] + key[ind%keylen]);
 
-   tc = s_box[ind];
-   s_box[ind] = s_box[j];
-   s_box[j] = tc;
+   tc = arc4_state_out[ind];
+   arc4_state_out[ind] = arc4_state_out[j];
+   arc4_state_out[j] = tc;
}
-   for( ind = 0; ind  val; ind++) {
+   arc4_state_out[256] = 0;
+   arc4_state_out[257] = 0;
+}
+
+/*
+ Do the arc4 crypt/decrpyt.
+ arc4 state is 258 bytes - last 2 bytes are the index bytes.
+*/
+
+void smb_arc4_crypt(unsigned char arc4_state_inout[258], unsigned char *data, 
size_t len)
+{
+   unsigned char index_i = arc4_state_inout[256];
+   unsigned char index_j = arc4_state_inout[257];
+size_t ind;
+
+   for( ind = 0; ind  len; ind++) {
unsigned char tc;
unsigned char t;
 
index_i++;
-   index_j += s_box[index_i];
+   index_j += arc4_state_inout[index_i];
 
-   tc = s_box[index_i];
-   s_box[index_i] = s_box[index_j];
-   s_box[index_j] = tc;
+   tc = arc4_state_inout[index_i];
+   arc4_state_inout[index_i] = arc4_state_inout[index_j];
+   arc4_state_inout[index_j] = tc;
 
-   t = s_box[index_i] + s_box[index_j];
-   data[ind] = data[ind] ^ s_box[t];
+   t = arc4_state_inout[index_i] + arc4_state_inout[index_j];
+   data[ind] = data[ind] ^ arc4_state_inout[t];
}
+
+   arc4_state_inout[256] = index_i;
+   arc4_state_inout[257] = index_j;
 }
 
-void SamOEMhashBlob( unsigned char *data, int len, DATA_BLOB *key)
+/*
+ arc4 crypt/decrypt with a 16 byte key.
+*/
+
+void SamOEMhash( unsigned char *data, const unsigned char key[16], size_t len)
 {
-   unsigned char s_box[256];
-   unsigned char index_i = 0;
-   unsigned char index_j = 0;
-   unsigned char j = 0;
-   int ind;
+   unsigned char arc4_state[258];
 
-   for (ind = 0; ind  256; ind++) {
-   s_box[ind] = (unsigned char)ind;
-   }
+   smb_arc4_init(arc4_state, key, 16);
+   smb_arc4_crypt(arc4_state, data, len);
+}
 
-   for( ind = 0; ind  256; ind++) {
-   unsigned char tc;
+void SamOEMhashBlob( unsigned char *data, size_t len, DATA_BLOB *key)
+{
+   unsigned char arc4_state[258];
 
-   j += (s_box[ind] + key-data[ind%key-length]);
-
-   tc = s_box[ind];
-   s_box[ind] = s_box[j];
-   s_box[j] = tc;
-   }
-   for( ind = 0; ind  len; ind++) {
-   unsigned char tc;
-   unsigned char t;
-
-   index_i++;
-   index_j += s_box[index_i];
-
-   tc = s_box[index_i];
-   s_box[index_i] = s_box[index_j];
-   s_box[index_j] = tc;
-
-   t = s_box[index_i] + s_box[index_j];
-   data[ind] = data[ind] ^ s_box[t];
-   }
+   smb_arc4_init(arc4_state, key-data, key-length);
+   

svn commit: samba r9317 - in branches/SOC/SAMBA_3_0/source/client: .

2005-08-15 Thread kalim
Author: kalim
Date: 2005-08-16 05:34:01 + (Tue, 16 Aug 2005)
New Revision: 9317

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

Log:
Modified authentication callback to pick up command line args.
Added rename command.

-Kalim
Modified:
   branches/SOC/SAMBA_3_0/source/client/client.c


Changeset:
Modified: branches/SOC/SAMBA_3_0/source/client/client.c
===
--- branches/SOC/SAMBA_3_0/source/client/client.c   2005-08-16 05:06:33 UTC 
(rev 9316)
+++ branches/SOC/SAMBA_3_0/source/client/client.c   2005-08-16 05:34:01 UTC 
(rev 9317)
@@ -132,34 +132,14 @@
 }
 else
 {
-d_printf(Workgroup: [%s] , pWorkgroup);
-fgets(temp, sizeof(temp), stdin);
+d_printf(Workgroup: %s\n, lp_workgroup());
+strncpy(pWorkgroup, lp_workgroup(), maxLenWorkgroup - 1);
+strncpy(authWorkgroup, lp_workgroup(), maxLenWorkgroup - 1);
 
-if (temp[strlen(temp) - 1] == '\n') /* A new line? */
-{
-temp[strlen(temp) - 1] = '\0';
-}
+d_printf(Username: %s\n, username);
+strncpy(pUsername, username, maxLenUsername - 1);
+strncpy(authUsername, username, maxLenUsername - 1);
 
-if (temp[0] != '\0')
-{
-strncpy(pWorkgroup, temp, maxLenWorkgroup - 1);
-strncpy(authWorkgroup, temp, maxLenWorkgroup - 1);
-}
-
-d_printf(Username: [%s] , pUsername);
-fgets(temp, sizeof(temp), stdin);
-
-if (temp[strlen(temp) - 1] == '\n') /* A new line? */
-{
-temp[strlen(temp) - 1] = '\0';
-}
-
-if (temp[0] != '\0')
-{
-strncpy(pUsername, temp, maxLenUsername - 1);
-strncpy(authUsername, pUsername, maxLenUsername - 1);
-}
-
 char *pass = getpass(Password: );
 if (pass)
 fstrcpy(temp, pass);
@@ -2378,27 +2358,34 @@
 
 static int cmd_rename(void)
 {
-   pstring src,dest;
-   pstring buf,buf2;
+int err;
+   pstring src, dest;
+   pstring oname, nname;
   
-   pstrcpy(src,cur_dir);
-   pstrcpy(dest,cur_dir);
+pstrcpy(src, smb:);
+pstrcat(src, service);
+   pstrcat(src, cur_dir);
+   pstrcpy(dest, src);

-   if (!next_token_nr(NULL,buf,NULL,sizeof(buf)) || 
-   !next_token_nr(NULL,buf2,NULL, sizeof(buf2))) {
+   if (!next_token_nr(NULL,oname,NULL,sizeof(oname)) || 
+   !next_token_nr(NULL,nname,NULL, sizeof(nname))) {
d_printf(rename src dest\n);
return 1;
}
 
-   pstrcat(src,buf);
-   pstrcat(dest,buf2);
+   pstrcat(src, oname);
+   pstrcat(dest, nname);
+
+d_printf(O: %s\nN: %s\n, src, dest);
 
-   if (!cli_rename(cli, src, dest)) {
-   d_printf(%s renaming files\n,cli_errstr(cli));
-   return 1;
-   }
-   
-   return 0;
+   err = smbc_rename(src, dest);
+if (err  0)
+{
+d_printf(%s renaming files\n, strerror(errno));
+return 1;
+}
+
+return 0;
 }
 
 /
@@ -2887,7 +2874,7 @@
   {rd,cmd_rmdir,directory remove a directory,{COMPL_NONE,COMPL_NONE}},
   {recurse,cmd_recurse,toggle directory recursion for mget and 
mput,{COMPL_NONE,COMPL_NONE}},
 /*  {reget,cmd_reget,remote name [local name] get a file restarting at 
end of local file,{COMPL_REMOTE,COMPL_LOCAL}},*/
-/*  {rename,cmd_rename,src dest rename some 
files,{COMPL_REMOTE,COMPL_REMOTE}},*/
+  {rename,cmd_rename,src dest rename some 
files,{COMPL_REMOTE,COMPL_REMOTE}},
 /*  {reput,cmd_reput,local name [remote name] put a file restarting at 
end of remote file,{COMPL_LOCAL,COMPL_REMOTE}},*/
 /*  {rm,cmd_del,mask delete all matching 
files,{COMPL_REMOTE,COMPL_NONE}},*/
   {rmdir,cmd_rmdir,directory remove a directory,{COMPL_NONE,COMPL_NONE}},