[Samba] Re: No Subject [MHA mha/77937]

2005-07-12 Thread MHA Engenharia Ltda

samba,

*** Confirmação automática de recebimento de mensagem eletrônica - E-MAIL ***
(Eletronic mail received - automatic confirmation)

Vossa mensagem foi recebida pelo Sistema de Recebimento de Mensagens da
MHA Engenharia Ltda e registrada sob o número:
(Your message was received by MHA Engenharia Ltda's Message Receiving System)
(It was registered as number:)

mha/77937

Essa mensagem foi gerada automaticamente, favor não responde-la.
(This message was automatically generated, please do not reply.)


Veja um exemplo de como vossa mensagem é vista em nosso sistema: 
http://www.mha.com.br/mha_mail/
(Access the above address and see an example of how your message is shown in 
our system.)


--(Original message) Segue cópia da vossa mensagem original - Tue, 12 Jul 2005 
03:51:26 -0300 --
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Samba PDC problem

2005-07-12 Thread Nicola Murino
My clients are windows xp sp2, however there is the same function:

Start-Run-gpedit.msc
LocalComputerPolicy - ComputerConfiguration
AdministrativeTemplates - System - User Profile - Do not check for
user ownership of Roaming profiles set to enable

now a basic PDC works :-),

thanks
Nicola

P.S. If this is a common problem (I have this issue with different samba
versions on different distributions) maybe would be a good idea insert
this issue in samba faq or in documentation such as samba by example or
other samba official doc (excuse me if it is already inserted)

Пустовалов Леонид Тимофеевич ha scritto:

Hello Nicola,

Monday, July 11, 2005, 8:16:16 PM, you wrote:

if client = windows 2000
try to Start - Run - gpedit.msc
LocalComputerPolicy - ComputerConfiguration -
AdministrativeTemplates - System - Logon - Do not check for user
ownership of Roaming profiles
set to Enable

NM Hi all,

NM I'm trying to configure samba as PDC, I have a problem when windows
NM client log in this is the error:

NM Windows cannot load the profile and is logging you on with a temporary
NM profile. Changes you make to this profile will be lost when  you log off

NM I have samba-3.0.11 and smbldap-tools-0.8.8. I tryed also samba-3.0.14
NM and smbldap-tools-0-9.1, I have the same problem on Gentoo and on Fedora
NM Core4

NM my configuration file

NM smb.conf:

NM [global]
NM workgroup = THEOREMATICA
NM netbios name = FERRARI
NM enable privileges = yes
NM interfaces = 10.88.77.201
NM bind interfaces only = yes
NM username map = /etc/samba/smbusers
NM server string = Samba PDC Server
NM hosts allow = 10.88.77.0/24 127.0.0.0/8
NM security = user
NM encrypt passwords = Yes
NM min passwd length = 3
NM obey pam restrictions = No
NM #unix password sync = Yes
NM #passwd program = /usr/sbin/smbldap-passwd -u %u
NM #passwd chat = Changing password for*\nNew password* %n\n
NM *Retype new password* %n\n
NM ldap passwd sync = Yes
NM log level = 0
NM syslog = 0
NM log file = /var/log/samba/log.%m
NM max log size = 10
NM time server = Yes
NM socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
NM mangling method = hash2
NM Dos charset = 850
NM Unix charset = ISO8859-1

NM logon script = STARTUP.BAT
NM #logon script =
NM #logon drive = H:
NM logon drive =
NM #logon home = \\%L\%U
NM logon home =
NM #logon path = \\%L\profiles\%U
NM logon path =

NM domain logons = Yes
NM #os level = 65
NM os level = 200
NM preferred master = Yes
NM domain master = Yes
NM wins support = Yes
NM name resolve order = wins lmhosts hosts bcast
NM dns proxy = no
NM passdb backend = ldapsam:ldap://127.0.0.1/
NM # passdb backend = ldapsam:ldap://127.0.0.1/
NM ldap://slave.idealx.com;
NM # ldap filter = ((objectclass=sambaSamAccount)(uid=%u))
NM ldap admin dn = cn=Manager,dc=theorematica,dc=it
NM ldap suffix = dc=theorematica,dc=it
NM ldap group suffix = ou=Groups
NM ldap user suffix = ou=Users
NM ldap machine suffix = ou=Computers
NM ldap idmap suffix = ou=Users
NM #ldap ssl = start tls
NM add user script = /usr/sbin/smbldap-useradd -m %u
NM ldap delete dn = Yes
NM #delete user script = /usr/sbin/smbldap-userdel %u
NM add machine script = /usr/sbin/smbldap-useradd -w %u
NM add group script = /usr/sbin/smbldap-groupadd -p %g
NM #delete group script = /usr/sbin/smbldap-groupdel %g
NM add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
NM delete user from group script = /usr/sbin/smbldap-groupmod -x
NM %u %g
NM set primary group script = /usr/sbin/smbldap-usermod -g %g %u

NM # printers configuration
NM printer admin = @Print Operators
NM load printers = Yes
NM create mask = 0640
NM directory mask = 0750
NM nt acl support = No
NM printing = cups
NM printcap name = cups
NM deadtime = 10
NM guest account = nobody
NM map to guest = Bad User
NM dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
NM show add printer wizard = yes
NM ; to maintain capital letters in shortcuts in any of the profile folders:
NM preserve case = yes
NM short preserve case = yes
NM case sensitive = no

NM [homes]
NM comment = Directory personale di %U, %u
NM read only = No
NM create mask = 0644
NM directory mask = 0775
NM browseable = No

NM [netlogon]
NM path = /var/lib/samba/netlogon
NM browseable = No
NM read only = yes

NM [doc]
NM path=/usr/share/doc
NM public=yes
NM writable=no
NM read 

[Samba] Re: file permission / ACL problems with Office files

2005-07-12 Thread Markus Kopf

Hi,

Jeremy Allison wrote:

I think this is something we've fixed for the 3.0.20 pre releases.
I'd appreciate it if you could test this in your environment (although
I appreciate that you probably won't want to put this into production).


I'm a colleague of Eduard, and I have been trying to reproduce the 
problem on a non-production system.
Unfortunately, even when using the exact same conf-files for samba and 
setting the same ACLs, we cannot reproduce it.
It seems to me that the problem only occurs when there is some load on 
the machine which we cannot force on our test system.


So I guess that testing with 3.0.20pre would not make much of a 
difference, since we don't run into the same error using 3.0.14a on the 
test machine.


Do you have any other idea what we could try?

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


Re: [Samba] Samba PDC problem

2005-07-12 Thread Nicola Murino
My clients are windows xp sp2, however there is the same function:

Start-Run-gpedit.msc
LocalComputerPolicy - ComputerConfiguration
AdministrativeTemplates - System - User Profile - Do not check for
user ownership of Roaming profiles set to enable

now a basic PDC works :-),

thanks
Nicola

P.S. If this is a common problem (I have this issue with different samba
versions on different distributions) maybe would be a good idea insert
this issue in samba faq or in documentation such as samba by example or
other samba official doc (excuse me if it is already inserted)

Пустовалов Леонид Тимофеевич ha scritto:

Hello Nicola,

Monday, July 11, 2005, 8:16:16 PM, you wrote:

if client = windows 2000
try to Start - Run - gpedit.msc
LocalComputerPolicy - ComputerConfiguration -
AdministrativeTemplates - System - Logon - Do not check for user
ownership of Roaming profiles
set to Enable

NM Hi all,

NM I'm trying to configure samba as PDC, I have a problem when windows
NM client log in this is the error:

NM Windows cannot load the profile and is logging you on with a temporary
NM profile. Changes you make to this profile will be lost when  you log off

NM I have samba-3.0.11 and smbldap-tools-0.8.8. I tryed also samba-3.0.14
NM and smbldap-tools-0-9.1, I have the same problem on Gentoo and on Fedora
NM Core4

NM my configuration file

NM smb.conf:

NM [global]
NM workgroup = THEOREMATICA
NM netbios name = FERRARI
NM enable privileges = yes
NM interfaces = 10.88.77.201
NM bind interfaces only = yes
NM username map = /etc/samba/smbusers
NM server string = Samba PDC Server
NM hosts allow = 10.88.77.0/24 127.0.0.0/8
NM security = user
NM encrypt passwords = Yes
NM min passwd length = 3
NM obey pam restrictions = No
NM #unix password sync = Yes
NM #passwd program = /usr/sbin/smbldap-passwd -u %u
NM #passwd chat = Changing password for*\nNew password* %n\n
NM *Retype new password* %n\n
NM ldap passwd sync = Yes
NM log level = 0
NM syslog = 0
NM log file = /var/log/samba/log.%m
NM max log size = 10
NM time server = Yes
NM socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
NM mangling method = hash2
NM Dos charset = 850
NM Unix charset = ISO8859-1

NM logon script = STARTUP.BAT
NM #logon script =
NM #logon drive = H:
NM logon drive =
NM #logon home = \\%L\%U
NM logon home =
NM #logon path = \\%L\profiles\%U
NM logon path =

NM domain logons = Yes
NM #os level = 65
NM os level = 200
NM preferred master = Yes
NM domain master = Yes
NM wins support = Yes
NM name resolve order = wins lmhosts hosts bcast
NM dns proxy = no
NM passdb backend = ldapsam:ldap://127.0.0.1/
NM # passdb backend = ldapsam:ldap://127.0.0.1/
NM ldap://slave.idealx.com;
NM # ldap filter = ((objectclass=sambaSamAccount)(uid=%u))
NM ldap admin dn = cn=Manager,dc=theorematica,dc=it
NM ldap suffix = dc=theorematica,dc=it
NM ldap group suffix = ou=Groups
NM ldap user suffix = ou=Users
NM ldap machine suffix = ou=Computers
NM ldap idmap suffix = ou=Users
NM #ldap ssl = start tls
NM add user script = /usr/sbin/smbldap-useradd -m %u
NM ldap delete dn = Yes
NM #delete user script = /usr/sbin/smbldap-userdel %u
NM add machine script = /usr/sbin/smbldap-useradd -w %u
NM add group script = /usr/sbin/smbldap-groupadd -p %g
NM #delete group script = /usr/sbin/smbldap-groupdel %g
NM add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
NM delete user from group script = /usr/sbin/smbldap-groupmod -x
NM %u %g
NM set primary group script = /usr/sbin/smbldap-usermod -g %g %u

NM # printers configuration
NM printer admin = @Print Operators
NM load printers = Yes
NM create mask = 0640
NM directory mask = 0750
NM nt acl support = No
NM printing = cups
NM printcap name = cups
NM deadtime = 10
NM guest account = nobody
NM map to guest = Bad User
NM dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
NM show add printer wizard = yes
NM ; to maintain capital letters in shortcuts in any of the profile folders:
NM preserve case = yes
NM short preserve case = yes
NM case sensitive = no

NM [homes]
NM comment = Directory personale di %U, %u
NM read only = No
NM create mask = 0644
NM directory mask = 0775
NM browseable = No

NM [netlogon]
NM path = /var/lib/samba/netlogon
NM browseable = No
NM read only = yes

NM [doc]
NM path=/usr/share/doc
NM public=yes
NM writable=no
NM read 

Re: [Samba] trouble with long filename copy

2005-07-12 Thread Jeremy Allison
On Tue, Jul 12, 2005 at 12:14:30AM +0200, [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Dear Jeremy et all,
 
 Problem is reproduceable
 I manually upgraded all samba utils to 3.0.14 or equiv.

Unfortunately 3.0.14 isn't the latest code :-). 3.0.14a is
the latest stable and Jerry is preparing to release a
3.0.20 pre-release. I suggest you try and reproduce
with that first.

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] trouble with long filename copy

2005-07-12 Thread Louis van Belle
Well, Dont have this problem at all.
How long is the file , characters and how long is your directory naming.

in total 255 Characters is max for windows XP.

I think its just a setting in your samba.

my works perfectly now, 
here my config, then you have a reference. 
, if you want you can email me directly , im dutch also. 
thats easy debugging.. 

Louis

The setup is as followed: 
Used: 
Debian Sarge, kernel 2.6.8 debian source, custombuild, ACL enabled.
Samba 3.0.14a, ldap, cups, cups-pdf.
Printers are RAW printer, and the Windows drivers are used.
to setup point and print, settings as below, browse to the ADD Printers and
Faxes, klik..
here klik right on a printer queue, and klik NO ! 
klik on the advanced tab and add new driver, select the driver.

good luck..



/snap my smb.conf

# Global parameters
[global]
## NETBIOS / DOMAIN / SERVER SETTINGS
#   realm = ROTTERDAM.BAZUIN.NL
interfaces = eth0 lo
bind interfaces only = yes
netbios name = PDC
server string = MS249-LIN-001
workgroup = BAZUIN
domain logons = Yes
preferred master = Yes
domain master = Yes
os level = 65
min protocol = NT1
lm announce = no
lanman auth = no
disable netbios = no
encrypt passwords = true
admin users = @Domain Admins
enable privileges = yes
security = user
time server = yes
dns proxy = yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
keep alive = 60

## USER/LDAP SETTINGS
username map = /etc/samba/users.map
guest account = nobody
obey pam restrictions = No
ldap passwd sync = yes
passdb backend = ldapsam:ldap://127.0.0.1/

ldap suffix = dc=rotterdam,dc=bazuin,dc=nl
ldap admin dn = cn=admin,dc=rotterdam,dc=bazuin,dc=nl
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Users
ldap delete dn = Yes
ldap ssl = no

add user script = /usr/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel %u
add group script = /usr/sbin/smbldap-groupadd -p %g
delete group script = /usr/sbin/smbldap-groupdel %g
add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
delete user from group script = /usr/sbin/smbldap-groupmod -x %u
%g
set primary group script = /usr/sbin/smbldap-usermod -g %g %u
add machine script = /usr/sbin/smbldap-useradd -w %u

## WINS/DNS SETTINGS
#
# Also needed when using ACL
#
wins support = Yes
#   password server = PDC
#   idmap uid = 1-2
#   idmap gid = 1-2
#   winbind use default domain = yes
#   winbind separator = \
#   winbind cache time = 15
#   winbind enum users = yes
#   winbind enum groups = yes
#   template shell = /bin/false
#   template homedir = /home/users/%U


## LOGGING
utmp = yes
syslog = 0
log level = 2
panic action = /usr/share/samba/panic-action %d
max log size = 1000
log file = /var/log/samba/log.%m


## 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/riched20.dll/*.{*}/
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:

## PRINTING Section 1 !! Global Settings !!  
printing = cups
load printers = Yes
show add printer wizard = Yes
max print jobs = 100
printcap name = cups
printer admin = @Printer Operators,@Domain
Admins,Administrator,root
lpq cache time = 20
use client driver = No
disable spoolss = No

# PRINTING Section 2 !! 
# users are able to connect to any printer specified in the Samba host's 
# printcap file  ( /etc/printcap ) provided through cups
[printers]
comment = All Network Printers
printable = yes
path = /home/samba/spool
browseable = No
guest ok = yes
public = yes
read only = yes
writable = no
create mode = 0777
lpq command = /usr/bin/lpq -P'%p'
lprm command = /usr/bin/lprm -P'%p' %j
lppause command = /usr/sbin/lpc hold '%p' %j
lpresume command = 

[Samba] nmbd registering itself als DMB is not working

2005-07-12 Thread Dirk.Laurenz
Hello everybody,
 
i'm just setting up a samba server as pdc with ldap backend.
everything but netbios works fine.
 
The system is called aadmt00 and is a pdc (virtual) and is bound to the ip 
192.168.53.180
 

hgest3201:~ # ip addr list
1: lo: LOOPBACK,UP mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: bond0: BROADCAST,MULTICAST,MASTER,UP mtu 1500 qdisc noqueue
link/ether 00:c0:9f:56:f5:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.53.44/24 brd 192.168.53.255 scope global bond0
inet 192.168.53.180/24 brd 192.168.53.255 scope global 
secondary bond0
inet6 fe80::2c0:9fff:fe56:f5bf/64 scope link tentative
   valid_lft forever preferred_lft forever
3: eth0: BROADCAST,MULTICAST,SLAVE,UP mtu 1500 qdisc 
pfifo_fast master bond0 qlen 1000
link/ether 00:c0:9f:56:f5:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.53.44/24 brd 192.168.53.255 scope global eth0
inet6 fe80::2c0:9fff:fe56:f5bf/64 scope link
   valid_lft forever preferred_lft forever
4: eth1: BROADCAST,MULTICAST,NOARP,SLAVE,UP mtu 1500 qdisc 
pfifo_fast master bond0 qlen 1000
link/ether 00:c0:9f:56:f5:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.53.44/24 brd 192.168.53.255 scope global eth1
inet6 fe80::2c0:9fff:fe56:f5bf/64 scope link
   valid_lft forever preferred_lft forever
5: sit0: NOARP mtu 1480 qdisc noqueue
link/sit 0.0.0.0 brd 0.0.0.0

Here's the smb.conf
(testparm -s /samba/aadmt00/conf/etc/smb.conf)

hgest3201:~ # testparm -s /samba/aadmt00/conf/etc/smb.conf
Load smb config files from /samba/aadmt00/conf/etc/smb.conf
Processing section [netlogon]
Loaded services file OK.
# Global parameters
[global]
unix charset = UTF8
workgroup = TOPTEST
netbios name = AADMT00
server string = Backoffice Testsystem PDC
interfaces = 192.168.53.180, 127.0.0.1
bind interfaces only = Yes
smb passwd file = /samba/aadmt00/conf/private/smbpasswd
private dir = /samba/aadmt00/conf/private
passdb backend = ldapsam:ldap://hgest3201.dom.test, 
ldapsam:ldap://hgest3202.dom.test
enable privileges = Yes
passwd program = /opt/IDEALX/sbin/smbldap-passwd -o %u
passwd chat = *New*password* %n\n *new*password* %n\n 
*successfully*
username map = /samba/aadmt00/conf/private/smbusers
unix password sync = Yes
log level = 8
syslog = 0
log file = /samba/aadmt00/conf/log/%m.log
max log size = 4096
smb ports = 139 445
name resolve order = wins lmhosts host bcast
printcap name = CUPS
show add printer wizard = No
add user script = /opt/IDEALX/sbin/smbldap-useradd -a 
%u
delete user script = /opt/IDEALX/sbin/smbldap-userdel 
%u
add group script = /opt/IDEALX/sbin/smbldap-groupadd -p 
%g
add user to group script = 
/opt/IDEALX/sbin/smbldap-groupmod -m %u %g
delete user from group script = 
/opt/IDEALX/sbin/smbldap-groupmod -x %u %g
set primary group script = 
/opt/IDEALX/sbin/smbldap-usermod -g '%g' '%u'
add machine script = /opt/IDEALX/sbin/smbldap-useradd 
-t 5 -w %u -g 515
domain logons = Yes
os level = 255
preferred master = Yes
domain master = Yes
wins support = Yes
ldap admin dn = cn=Samba 
Server,cn=Samba,cn=Applications,o=dom
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmaps
ldap machine suffix = ou=Computers
ldap passwd sync = Yes
ldap replication sleep = 5000
ldap suffix = ou=TOPTEST,o=dom
ldap timeout = 5
ldap user suffix = ou=Users
lock directory = 

[Samba] Re:$B$=$$$$($P(B

2005-07-12 Thread saito
Q1.最近楽しいことが無い。
   ①はい ②いいえ

Q2.自分に自信が無い。
   ①はい ②いいえ

Q3.日ごろの生活に満足していない。
   ①はい ②いいえ 

Q4.平凡な毎日に、退屈してる。
   ①はい ②いいえ

Q5.出会いを求めたパーティーに参加したことがありますか。
   ①はい ②いいえ

Q6.出会い系サイトを利用したことがありますか。
   ①はい ②いいえ

Q7.騙された事がある。
   ①はい ②いいえ

以上の中に「①はい」が1つでも見つかった方は下記へお進み下さい。

突然のメールに驚いたかと思いますが、
VenusNetwork【ヴィーナス・ネットワーク】代表富田ゆかりと申します。
新たな未来をサポートするクラブを設立しております。

簡単な自己紹介をさせて頂きますと、
私は、アメリカ留学 帰国後、 外資系企業に勤務

24歳で世に言う「ねるとんパーティー」型イベント会社に転職

同会社が5年後出会い系サイトに形を変えるものの、
実際に出会えるまでが遠回りである事に疑問を持ちはじめ、
女性紹介クラブの立ち上げに至っております。

私が体験しました、自らの経験を生かし、
今まで出会えなかった沢山の方々のサポートを行っております。

私は、自らの写真・プロフィールを出していますので、一切嘘は申しません。
当クラブは、女性をご紹介するに当たって一切の料金も頂いておりません。
それは、女性会員様からのご融資でまかなっておりますのでお気軽にご利用下さい。

なぜこの様なクラブを立ち上げたかと申しますと、
私は海外留学や、様々な仕事を行ってきたこともあり、
交流が幅広く、交友関係がとても多くあります。
前職業柄のせいか、多くの女性から“出会い”の相談が絶えません。

そこで、自らクラブを立ち上げました。

当クラブの女性会員様は、セレブな方も多くいらっしゃいまして、お金を
出してまでも男性と知り合いたいと思っている方も多々いらっしゃいます。

真剣に結婚を考えている方、恋人を探している方、
秘密で刺激を求めている方も数多くいらっしゃいます。

是非、この機会に、刺激的な生活を求めてみませんか。


それでは、
アンケートの意味も込めまして、気軽な気持ちで下記の質問にお答え下さい。

Q1.貴方のお住まいもしくは、会いたい都道府県をお教え下さい。


Q2.当クラブをご利用されるにあたっての希望

   ①《真面目な交際》
 結婚相手・恋人を探す。

   ②《サポート》
 お金に余裕のあるセレブの方からのサポート。

   ③《割り切り交際》
 秘密厳守で逢う。刺激的な交際。

  ④《40歳以上の交際》
 40歳以上から始まる交際。

メール返信で上記の質問にお答え頂ければ、こちらで希望に合った女性を
ご紹介差し上げます。

このメールは以前ご連絡のあった皆様にご返信しておりますが、万が一
見覚えがない、またはこのメールを信じれない。不審に思うという方は、
そのまま破棄されるか「配信不要」とお書きになり、ご返信頂きます様
お願い致します。

 『VenusNetwork』代表 富田ゆかり 


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


[Samba] Mount logon Home dir on Linux (CTM)

2005-07-12 Thread Cristian Thiago Moecke

I will try to explian it better this time.

	I have a Windows NT 4.0 Server, that is the PDC on my network. I also 
have a FC3 Samba 3 server that is the file server, where most of logon 
home dirs are stored. In the NT PDC i set up most users to map Z: drive 
to \\MY_SAMBA_SERVER\username
	In the Win XP workstations everithing is wrking realy fine. Now i want 
to set up some Linux Fedora Core 4 Workstations too. I already installed 
the FC4, samba and winbind, everithing working fine too. I can log in in 
linux using my NT password.
	Just what I need now is to mount the logon home dir to the users who 
log in in the linux workstation. I didnt found out reading the docs and 
looking in the internet how can I do it (and IF I can). I can run a 
logon script that mounts \\MY_SAMBA_SERVER\username using smbmount, but 
that has 2 problems: firist, it will ask the password, but how i can 
make the script know the password? And the second problem: some users 
dont have the logon home dir in the MY_SAMBA_SERVER.
	So I think probably there is a better way to do it, maybe using pam.d, 
i dont know. Anyone could help me on that?


   Thanks for any help,
Cristian T. Moecke
LMP-UFSC

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


Re: [Samba] Mount logon Home dir on Linux (CTM)

2005-07-12 Thread Mi
I suppose you will have to add some scripting to manage the Linux 
clients. A script could ask the NT PDC about the user's home, and then 
mount it directly through nfs.


So the question for this list would be: how can I query a Windows NT PDC 
(no ldap) about a user's home directory. That script may need to have an 
administrator password to be able to query the PDC.



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


[Samba] W2K Workstation not reading NTConfig.pol

2005-07-12 Thread Alejandro Hernández
You must make sure that, if path directive in the share is, 
/srv/netlogon, both directories (or _any_directory_ in the way to 
NTconfig.POL) have the 'x' bit on its permissions.


For example (and not complete :)

/srv $ ls -ld netlogon

rwxrwx--- owner group 2048 netlogon

will never let you read anything in Samba if your group is not 'group'. 
Because the position bit (execution for files, position/placement for 
directories) is not set and Samba needs it.


If instead of rwxrwx--- you, at least, have

rwx--x--x

Samba will let you read the NTconfig.POL like it or not :) We had tons 
of incidencies regarding our user profiles and most of the time it was 
due to it. Same applies to any other file or directory, like... [homes]!




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


Re: [Samba] Mount logon Home dir on Linux (CTM)

2005-07-12 Thread Cristian Thiago Moecke
Hmmm... Ok... I will be happy to if I can make a script that mounts 
\\MY_SAMBA_SERVER\username siwthout asking the user for the password 
(so, how can I tell the script to use the same password and username of 
the current user?)... Well, for the users that dont have the home dir in 
\\MY_SAMBA_SERVER i will just say sorry :D


Cristian

I suppose you will have to add some scripting to manage the Linux 
clients. A script could ask the NT PDC about the user's home, and then 
mount it directly through nfs.


So the question for this list would be: how can I query a Windows NT 
PDC (no ldap) about a user's home directory. That script may need to 
have an administrator password to be able to query the PDC.





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


Re: [Samba] Mount logon Home dir on Linux (CTM)

2005-07-12 Thread Ian Dees
If you figure this one out, please let me know. I've been trying to do 
this for at least a year now with no luck.


-Ian

Cristian Thiago Moecke wrote:

Hmmm... Ok... I will be happy to if I can make a script that mounts 
\\MY_SAMBA_SERVER\username siwthout asking the user for the password 
(so, how can I tell the script to use the same password and username 
of the current user?)... Well, for the users that dont have the home 
dir in \\MY_SAMBA_SERVER i will just say sorry :D


Cristian

I suppose you will have to add some scripting to manage the Linux 
clients. A script could ask the NT PDC about the user's home, and 
then mount it directly through nfs.


So the question for this list would be: how can I query a Windows NT 
PDC (no ldap) about a user's home directory. That script may need to 
have an administrator password to be able to query the PDC.







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


Re: [Samba] Mount logon Home dir on Linux (CTM)

2005-07-12 Thread Cristian Thiago Moecke
I was thinking... if nothing else woks, I will just create a default kde 
desktop shortcut pointing to smb:\\MY_SAMBA_SERVER\username... That i 
think I can do, should be easy! :)
Is there a way to at least make Konqueror stop asking the user and 
password and use the same user and password that was used to log in???


Cristian

If you figure this one out, please let me know. I've been trying to do 
this for at least a year now with no luck.


-Ian

Cristian Thiago Moecke wrote:

Hmmm... Ok... I will be happy to if I can make a script that mounts 
\\MY_SAMBA_SERVER\username siwthout asking the user for the password 
(so, how can I tell the script to use the same password and username 
of the current user?)... Well, for the users that dont have the home 
dir in \\MY_SAMBA_SERVER i will just say sorry :D


Cristian

I suppose you will have to add some scripting to manage the Linux 
clients. A script could ask the NT PDC about the user's home, and 
then mount it directly through nfs.


So the question for this list would be: how can I query a Windows NT 
PDC (no ldap) about a user's home directory. That script may need to 
have an administrator password to be able to query the PDC.









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


[Samba] nss_ldap disconnect

2005-07-12 Thread Michael Trimarchi

Hi all,
I have this log messages in my linux fedora core 3.


smbd[2923]: nss_ldap: reconnecting to LDAP server...
Jul 11 14:45:23 fedoraserver smbd[2923]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:46:42 fedoraserver smbd[2947]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:46:42 fedoraserver smbd[2947]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:46:43 fedoraserver smbd[2969]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:46:43 fedoraserver smbd[2969]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:48:07 fedoraserver smbd[2970]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:48:07 fedoraserver smbd[2970]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:48:31 fedoraserver smbd[2983]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:48:31 fedoraserver smbd[2983]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:48:42 fedoraserver smbd[2947]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:48:42 fedoraserver smbd[2947]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:49:08 fedoraserver smbd[2948]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:49:08 fedoraserver smbd[2948]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:50:02 fedoraserver smbd[2947]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:50:02 fedoraserver smbd[2947]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:50:50 fedoraserver smbd[2970]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:50:50 fedoraserver smbd[2970]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:51:44 fedoraserver smbd[2969]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:51:44 fedoraserver smbd[2969]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:52:30 fedoraserver smbd[2995]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:52:30 fedoraserver smbd[2995]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:52:37 fedoraserver smbd[2948]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:52:37 fedoraserver smbd[2948]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:54:10 fedoraserver smbd[2993]: nss_ldap: reconnecting to 
LDAP server...
Jul 11 14:54:10 fedoraserver smbd[2993]: nss_ldap: reconnected to LDAP 
server after 1 attempt(s)
Jul 11 14:54:15 fedoraserver smbd[2988]: nss_ldap: reconnecting to 
LDAP server... 




What is the problem?

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


[Samba] HELP - PLEASE - COMPILE ERROR - VASPRINTF_MULTIPLE_DEFINED

2005-07-12 Thread Saville, Michael
NEED HELP ASAP,

Trying to compile samba with ADS/LDAP/KRB5 support.  Followed
instructions to install heimdal, then openldap, then samba.
Getting errors: vasprintf and asprintf multiply-defined, conflict
between /usr/local/lib/libroken.a and lib/snprintf.o
/usr/local/lib/libroken.a is Heimdal library.  Using latest versions for
heimdal, openldap and samba, with gcc_v3.4.

Really appreciate any help.
Thx
Mike
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Inherit Owner Question Folder Rights

2005-07-12 Thread Michael Gasch

it seems to be easy:

force create modes for files should be 700
the directory that owns the files should be writeable/readable for 
everyone (to copy/create files)


owner (of the directory and new files) should be someone != member of 
your group, where everybody is in (e.g. domain users) - a dummy user


inherit permissions = yes
inherit acls = yes
inherit owner = yes

just play with it

greez

Aldi wrote:

Hello, I am running Suse Linux 9.3 an Samba 3.0.20pre.

I want to set up a folder where the user can only store files and copy
them to an other folder. The User should not be able to delete modify or
open the stored messages.

Any ideas how I can realize this?

Thanks! Greez





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

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


[Samba] Problems uploading printer drivers

2005-07-12 Thread Greg Baker
I'm having trouble uploading printer drivers using Windows XP's APW.  Since 
I'm not sure where to look for a solution, perhaps someone here can help.

I've tried a few different procedures, but I'll only describe one here.

1) browse to the samba server in windows xp
2) double click on Printers  Faxes
3) right click on some blank window area and select Server Properties
4) click on the drivers tab
5) click on Add...
6) select the driver for the printer in question

Once I select the drivers it appears to upload them to the server.  However, 
after the progress bar finishes I get the following error:

The drivers list was not refreshed.  The driver data may be invalid.
Windows cannot locate a suitable printer driver.  Contact your
administrator for help locating and installing a suitable driver.

On the samba box, I see the drivers in /var/lib/samba/drivers/X32X86/3 and if 
I use rpcclient (enumdrivers) it lists the driver there.  Yet whenever I go 
to the above mentioned server properties the driver list is empty.  
Likewise, when I right click on a printer and try to assign this driver to a 
printer the list is empty.

I have also tried right clicking on the printer and adding the driver to the 
specific printer share, but get the same thing.  It always *seems* to work 
but in the end the driver list is empty on the XP machines.

It seems to be a permission problem, but I'm not really sure.  If someone has 
a clue where I can start troubleshooting I'd be grateful.  I already tried 
turning up logging in samba but didn't get much help.  I tried a stack trace 
to see if it was trying to write to a file somewhere but again didn't see 
anything helpful.

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


Re: [Samba] Samba PDC problem

2005-07-12 Thread John H Terpstra
On Tuesday 12 July 2005 01:50, Nicola Murino wrote:
 My clients are windows xp sp2, however there is the same function:

 Start-Run-gpedit.msc
 LocalComputerPolicy - ComputerConfiguration
 AdministrativeTemplates - System - User Profile - Do not check for
 user ownership of Roaming profiles set to enable

 now a basic PDC works :-),

 thanks
 Nicola

 P.S. If this is a common problem (I have this issue with different samba
 versions on different distributions) maybe would be a good idea insert
 this issue in samba faq or in documentation such as samba by example or
 other samba official doc (excuse me if it is already inserted)

Please refer to the book, The Official Samba-3 HOWTO and Reference Guide, 
second edition, Chapter 26, Section 26.2.2.3.

This book is being printed and is due to be released at LinuxWorld San 
Francisco. You can obtain a PDF of it from:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf

Cheers,
John T.


 Пустовалов Леонид Тимофеевич ha scritto:
 Hello Nicola,
 
 Monday, July 11, 2005, 8:16:16 PM, you wrote:
 
 if client = windows 2000
 try to Start - Run - gpedit.msc
 LocalComputerPolicy - ComputerConfiguration -
 AdministrativeTemplates - System - Logon - Do not check for user
 ownership of Roaming profiles
 set to Enable
 
 NM Hi all,
 
 NM I'm trying to configure samba as PDC, I have a problem when windows
 NM client log in this is the error:
 
 NM Windows cannot load the profile and is logging you on with a temporary
 NM profile. Changes you make to this profile will be lost when  you log
  off
 
 NM I have samba-3.0.11 and smbldap-tools-0.8.8. I tryed also samba-3.0.14
 NM and smbldap-tools-0-9.1, I have the same problem on Gentoo and on
  Fedora NM Core4
 
 NM my configuration file
 
 NM smb.conf:
 
 NM [global]
 NM workgroup = THEOREMATICA
 NM netbios name = FERRARI
 NM enable privileges = yes
 NM interfaces = 10.88.77.201
 NM bind interfaces only = yes
 NM username map = /etc/samba/smbusers
 NM server string = Samba PDC Server
 NM hosts allow = 10.88.77.0/24 127.0.0.0/8
 NM security = user
 NM encrypt passwords = Yes
 NM min passwd length = 3
 NM obey pam restrictions = No
 NM #unix password sync = Yes
 NM #passwd program = /usr/sbin/smbldap-passwd -u %u
 NM #passwd chat = Changing password for*\nNew password* %n\n
 NM *Retype new password* %n\n
 NM ldap passwd sync = Yes
 NM log level = 0
 NM syslog = 0
 NM log file = /var/log/samba/log.%m
 NM max log size = 10
 NM time server = Yes
 NM socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 NM mangling method = hash2
 NM Dos charset = 850
 NM Unix charset = ISO8859-1
 
 NM logon script = STARTUP.BAT
 NM #logon script =
 NM #logon drive = H:
 NM logon drive =
 NM #logon home = \\%L\%U
 NM logon home =
 NM #logon path = \\%L\profiles\%U
 NM logon path =
 
 NM domain logons = Yes
 NM #os level = 65
 NM os level = 200
 NM preferred master = Yes
 NM domain master = Yes
 NM wins support = Yes
 NM name resolve order = wins lmhosts hosts bcast
 NM dns proxy = no
 NM passdb backend = ldapsam:ldap://127.0.0.1/
 NM # passdb backend = ldapsam:ldap://127.0.0.1/
 NM ldap://slave.idealx.com;
 NM # ldap filter = ((objectclass=sambaSamAccount)(uid=%u))
 NM ldap admin dn = cn=Manager,dc=theorematica,dc=it
 NM ldap suffix = dc=theorematica,dc=it
 NM ldap group suffix = ou=Groups
 NM ldap user suffix = ou=Users
 NM ldap machine suffix = ou=Computers
 NM ldap idmap suffix = ou=Users
 NM #ldap ssl = start tls
 NM add user script = /usr/sbin/smbldap-useradd -m %u
 NM ldap delete dn = Yes
 NM #delete user script = /usr/sbin/smbldap-userdel %u
 NM add machine script = /usr/sbin/smbldap-useradd -w %u
 NM add group script = /usr/sbin/smbldap-groupadd -p %g
 NM #delete group script = /usr/sbin/smbldap-groupdel %g
 NM add user to group script = /usr/sbin/smbldap-groupmod -m %u
  %g NM delete user from group script =
  /usr/sbin/smbldap-groupmod -x NM %u %g
 NM set primary group script = /usr/sbin/smbldap-usermod -g %g
  %u
 
 NM # printers configuration
 NM printer admin = @Print Operators
 NM load printers = Yes
 NM create mask = 0640
 NM directory mask = 0750
 NM nt acl support = No
 NM printing = cups
 NM printcap name = cups
 NM deadtime = 10
 NM guest account = nobody
 NM map to guest = Bad User
 NM dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
 NM show add printer wizard = yes
 NM ; to maintain capital letters in shortcuts in any of the profile
  folders: NM   

Re: [Samba] Samba PDC problem

2005-07-12 Thread Martin Petersen

Hi Nicola,

with WinNT, Win2k or WinXP I need to change some permissions.
Start on the client machines the Group Policy editor (gpedit.msc) and 
try to find the switch Don't check for permissions on profile.


I'am sorry but I don't own a Win32 machine right now.

Your problem is that the Windows internal permission check fails on the 
Samba PDC profile.


Hope I could help.

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


RE: [Samba] Problems uploading printer drivers

2005-07-12 Thread Louis van Belle
didnt you see my post before.. 

1) browse to the samba server in windows xp
2) double click on Printers  Faxes  
3) right click on some blank window area and select Server Properties  =
= wrong,
right = select a printer queue, right klik and first klik NO !!!

4) click on the drivers tab
5) click on Add...
6) select the driver for the printer in question


this wil work, almost correct.

also make sure that the directory has the correct rights.

i have 775 on /home/samba/printer  ( my driver location )
and rights Administrator:Domain Admins

good luck


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


Re: [Samba] Samba PDC problem

2005-07-12 Thread Martin Petersen

Hi Nicola (again :),

found what You were looking for:


Some information I found in the Unofficial Samba HowTo
(http://hr.uoregon.edu/davidrl/samba.html) on XP Pro clients.

Extract from there follows:

## EXTRACT ##

Windows XP Clients

To force Windows XP Professional clients to accept Samba as a PDC, use 
the built-in XP Group Policy editor (gpedit.msc) and locate the Computer
Configuration\Windows Settings\Security Settings\Local Policies\Security 
Options branch. Make sure to disable the following policies:


Domain Member: Digitally encrypt or sign secure channel data (always)
Domain Member: Digitally sign secure channel data (when possible)

Alternately, you can make the following change to the registry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
requiresignorseal=dword:
signsecurechannel=dword:

To disable annoying Event Viewer notifications about Automatic 
ertificate enrollment for local system failed to contact the active 
directory every eight hours, locate the Computer Configuration\Windows 
Settings\Security Settings\Public Key Policies branch and select Do not 
enroll certificates automatically under Autoenrollment Settings. Note 
that this policy won't be available until after the XP machine has 
joined the domain.


If you'd like to use Roaming Profiles with Windows XP clients that have 
Service Pack 1 or later installed, use the built-in XP Group Policy 
editor (gpedit.msc) and locate the Computer Configuration\Administrative 
Templates\System\User Profiles branch. This is described in Microsoft's 
Technet Q327462. Make sure to enable the following policy:


Do not check for user ownership of Roaming Profile Folders

Alternately, you can make the following change to the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
CompatibleRUPSecurity=dword:0001

Alternately as well, you can make the following addition to your 
smb.conf file:


[profile]
   profile acls = yes

Windows XP Home Edition does not support logging into a Primary Domain
Controller, so you'll have to use Windows XP Professional instead.

## END EXTRACT ##

Ciao,

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


RE: [Samba] Samba PDC problem

2005-07-12 Thread Louis van Belle
what you need is a reg file.. 

like this.
/CUT HERE and remove this line
REGEDIT4

;--MUST
; do not roam the following folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
ExcludeProfileDirs=Temporary Internet Files;History;Temp

;--MUST
; force Windows XP Professional clients to accept Samba as a PDC
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
requiresignorseal=dword:
signsecurechannel=dword: 

;--MUST
; Do not check for user ownership of Roaming Profile Folders
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
CompatibleRUPSecurity=dword:0001

;--OPTIONAL
; settings for explorer, full path in header

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Cabine
tState]
Settings=hex:0c,00,02,00,0b,01,00,20,60,00,00,00
FullPath=dword:0001
FullPathAddress=dword:0001

;--OPTIONAL
; more custom settings for explorer

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanc
ed]
Hidden=dword:0002
ShowCompColor=dword:
HideFileExt=dword:
DontPrettyPath=dword:
ShowInfoTip=dword:0001
HideIcons=dword:
MapNetDrvBtn=dword:
WebView=dword:
Filter=dword:
SuperHidden=dword:0001
SeparateProcess=dword:0001
StartMenuInit=dword:0001
ShowSuperHidden=dword:0001
ClassicViewState=dword:0001

;OPTIONAL--
; show the current user and machine name below the My Computer icon
; if you look at this with the regedit it looks much less frigtening

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
@=hex(2):25,55,53,45,52,4e,41,4d,45,25,20,25,43,4f,4d,50,55,54,45,52,4e,41,4
d,\
  45,25,20,25,55,53,45,52,44,4f,4d,41,49,4e,25,00

;-OPTIONAL-
; configure the desktop in a sensile manner ... smaller decorations
; smooth fonts, no animation


[HKEY_CURRENT_USER\Control Panel\Desktop]
FontSmoothing=2
UserPreferencesMask=hex:90,32,00,80
SmoothScroll=dword:

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
BorderWidth=0
CaptionHeight=-270
CaptionWidth=-270
IconSpacing=-1125
IconTitleWrap=1
IconVerticalspacing=-1125
MenuHeight=-240
MenuWidth=-240
ScrollHeight=-210
ScrollWidth=-210
Shell Icon BPP=16
SmCaptionHeight=-225
SmCaptionWidth=-225
MinAnimate=0 
;-END
/CUT HERE and remove this line



-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
Namens Martin Petersen
Verzonden: dinsdag 12 juli 2005 16:26
Aan: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba PDC problem

Hi Nicola,

with WinNT, Win2k or WinXP I need to change some permissions.
Start on the client machines the Group Policy editor (gpedit.msc) and 
try to find the switch Don't check for permissions on profile.

I'am sorry but I don't own a Win32 machine right now.

Your problem is that the Windows internal permission check 
fails on the 
Samba PDC profile.

Hope I could help.

Martin Petersen
-- 
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


Re: [Samba] Problems uploading printer drivers

2005-07-12 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Louis van Belle wrote:
| didnt you see my post before..
|
| 1) browse to the samba server in windows xp
| 2) double click on Printers  Faxes   
| 3) right click on some blank window area and
|select Server Properties  =
| = wrong, right = select a printer queue, right
| klik and first klik NO !!!

Actually the server properties work fine.  It does the
same action as uploading via the printer properties
New Driver button but without bind the driver to a
specific printer.





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

iD8DBQFC09TdIR7qMdg1EfYRAiTaAJ9b/lZqJvBnwrWLw0EmFAUrKEph0wCffMQk
2l1pvcazItEAXIGDwwMDBxI=
=L55D
-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 uploading printer drivers

2005-07-12 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greg Baker wrote:
| I'm having trouble uploading printer drivers using Windows
| XP's APW.  Since  I'm not sure where to look for a
| solution, perhaps someone here can help.
|
| I've tried a few different procedures, but I'll only
| describe one here.
|
| 1) browse to the samba server in windows xp
| 2) double click on Printers  Faxes
| 3) right click on some blank window area and select Server Properties
| 4) click on the drivers tab
| 5) click on Add...
| 6) select the driver for the printer in question
|
| Once I select the drivers it appears to upload them to
| the server.  However, after the progress bar finishes
| I get the following error:
|
| The drivers list was not refreshed.  The driver data may be invalid.
| Windows cannot locate a suitable printer driver.  Contact your
| administrator for help locating and installing a suitable driver.

What version of Samba are you using ?  And make sure that you
are not using 'security = share' since its not really a supported
configuration when it comes to point-n-print.





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

iD8DBQFC09V2IR7qMdg1EfYRAiEVAKDTgcmRzqg6PG/Ddgtydkz3HxEDswCdH7bS
FN00H8FfBAeXvSDD7p79c+U=
=O2mj
-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] Samba PDC problem

2005-07-12 Thread Nicola Murino
Sorry, I haven't seen this

thanks for help
Nicola


John H Terpstra ha scritto:

On Tuesday 12 July 2005 01:50, Nicola Murino wrote:
  

My clients are windows xp sp2, however there is the same function:

Start-Run-gpedit.msc
LocalComputerPolicy - ComputerConfiguration
AdministrativeTemplates - System - User Profile - Do not check for
user ownership of Roaming profiles set to enable

now a basic PDC works :-),

thanks
Nicola

P.S. If this is a common problem (I have this issue with different samba
versions on different distributions) maybe would be a good idea insert
this issue in samba faq or in documentation such as samba by example or
other samba official doc (excuse me if it is already inserted)



Please refer to the book, The Official Samba-3 HOWTO and Reference Guide, 
second edition, Chapter 26, Section 26.2.2.3.

This book is being printed and is due to be released at LinuxWorld San 
Francisco. You can obtain a PDF of it from:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf

Cheers,
John T.

  

Пустовалов Леонид Тимофеевич ha scritto:


Hello Nicola,

Monday, July 11, 2005, 8:16:16 PM, you wrote:

if client = windows 2000
try to Start - Run - gpedit.msc
LocalComputerPolicy - ComputerConfiguration -
AdministrativeTemplates - System - Logon - Do not check for user
ownership of Roaming profiles
set to Enable

NM Hi all,

NM I'm trying to configure samba as PDC, I have a problem when windows
NM client log in this is the error:

NM Windows cannot load the profile and is logging you on with a temporary
NM profile. Changes you make to this profile will be lost when  you log
off

NM I have samba-3.0.11 and smbldap-tools-0.8.8. I tryed also samba-3.0.14
NM and smbldap-tools-0-9.1, I have the same problem on Gentoo and on
Fedora NM Core4

NM my configuration file

NM smb.conf:

NM [global]
NM workgroup = THEOREMATICA
NM netbios name = FERRARI
NM enable privileges = yes
NM interfaces = 10.88.77.201
NM bind interfaces only = yes
NM username map = /etc/samba/smbusers
NM server string = Samba PDC Server
NM hosts allow = 10.88.77.0/24 127.0.0.0/8
NM security = user
NM encrypt passwords = Yes
NM min passwd length = 3
NM obey pam restrictions = No
NM #unix password sync = Yes
NM #passwd program = /usr/sbin/smbldap-passwd -u %u
NM #passwd chat = Changing password for*\nNew password* %n\n
NM *Retype new password* %n\n
NM ldap passwd sync = Yes
NM log level = 0
NM syslog = 0
NM log file = /var/log/samba/log.%m
NM max log size = 10
NM time server = Yes
NM socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
NM mangling method = hash2
NM Dos charset = 850
NM Unix charset = ISO8859-1

NM logon script = STARTUP.BAT
NM #logon script =
NM #logon drive = H:
NM logon drive =
NM #logon home = \\%L\%U
NM logon home =
NM #logon path = \\%L\profiles\%U
NM logon path =

NM domain logons = Yes
NM #os level = 65
NM os level = 200
NM preferred master = Yes
NM domain master = Yes
NM wins support = Yes
NM name resolve order = wins lmhosts hosts bcast
NM dns proxy = no
NM passdb backend = ldapsam:ldap://127.0.0.1/
NM # passdb backend = ldapsam:ldap://127.0.0.1/
NM ldap://slave.idealx.com;
NM # ldap filter = ((objectclass=sambaSamAccount)(uid=%u))
NM ldap admin dn = cn=Manager,dc=theorematica,dc=it
NM ldap suffix = dc=theorematica,dc=it
NM ldap group suffix = ou=Groups
NM ldap user suffix = ou=Users
NM ldap machine suffix = ou=Computers
NM ldap idmap suffix = ou=Users
NM #ldap ssl = start tls
NM add user script = /usr/sbin/smbldap-useradd -m %u
NM ldap delete dn = Yes
NM #delete user script = /usr/sbin/smbldap-userdel %u
NM add machine script = /usr/sbin/smbldap-useradd -w %u
NM add group script = /usr/sbin/smbldap-groupadd -p %g
NM #delete group script = /usr/sbin/smbldap-groupdel %g
NM add user to group script = /usr/sbin/smbldap-groupmod -m %u
%g NM delete user from group script =
/usr/sbin/smbldap-groupmod -x NM %u %g
NM set primary group script = /usr/sbin/smbldap-usermod -g %g
%u

NM # printers configuration
NM printer admin = @Print Operators
NM load printers = Yes
NM create mask = 0640
NM directory mask = 0750
NM nt acl support = No
NM printing = cups
NM printcap name = cups
NM deadtime = 10
NM guest account = nobody
NM map to guest = Bad User
NM dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
NM show add printer wizard = yes
NM ; to maintain capital letters in shortcuts in any of the profile
folders: NM preserve case = yes
NM 

Re: [Samba] Samba PDC problem

2005-07-12 Thread John H Terpstra
Martin,

None of these changes are necessary if the Samba 3.0.x server is correctly 
configured. I have extensively documented Samba PDC configuration in my book 
Samba-3 by Example. This book can be obtained from:

http://www.samba.org/samba/docs/Samba3-ByExample.pdf

PS: This is part of the official Samba documentation. I would like to believe 
that it is up to date, given that I spent the past 5 months full-time 
updating all the official documentation.

If there are problems with the documentation (and I am not say claiming that 
they are error or defect-free) please let me know so it can be fixed.

- John T.

On Tuesday 12 July 2005 08:31, Martin Petersen wrote:
 Hi Nicola (again :),

 found what You were looking for:


 Some information I found in the Unofficial Samba HowTo
 (http://hr.uoregon.edu/davidrl/samba.html) on XP Pro clients.

 Extract from there follows:

 ## EXTRACT ##

 Windows XP Clients

 To force Windows XP Professional clients to accept Samba as a PDC, use
 the built-in XP Group Policy editor (gpedit.msc) and locate the Computer
 Configuration\Windows Settings\Security Settings\Local Policies\Security
 Options branch. Make sure to disable the following policies:

 Domain Member: Digitally encrypt or sign secure channel data (always)
 Domain Member: Digitally sign secure channel data (when possible)

 Alternately, you can make the following change to the registry:

 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
 requiresignorseal=dword:
 signsecurechannel=dword:

 To disable annoying Event Viewer notifications about Automatic
 ertificate enrollment for local system failed to contact the active
 directory every eight hours, locate the Computer Configuration\Windows
 Settings\Security Settings\Public Key Policies branch and select Do not
 enroll certificates automatically under Autoenrollment Settings. Note
 that this policy won't be available until after the XP machine has
 joined the domain.

 If you'd like to use Roaming Profiles with Windows XP clients that have
 Service Pack 1 or later installed, use the built-in XP Group Policy
 editor (gpedit.msc) and locate the Computer Configuration\Administrative
 Templates\System\User Profiles branch. This is described in Microsoft's
 Technet Q327462. Make sure to enable the following policy:

 Do not check for user ownership of Roaming Profile Folders

 Alternately, you can make the following change to the registry:

 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
 CompatibleRUPSecurity=dword:0001

 Alternately as well, you can make the following addition to your
 smb.conf file:

 [profile]
 profile acls = yes

 Windows XP Home Edition does not support logging into a Primary Domain
 Controller, so you'll have to use Windows XP Professional instead.

 ## END EXTRACT ##

 Ciao,

 Martin

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

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


Re: [Samba] Samba PDC problem

2005-07-12 Thread John H Terpstra
Folks,

The disabling of sign'n'seal and s-channel support is a BAD idea. It is also 
completely unnecessary if you are using Samba-3 correctly.

- John T.

On Tuesday 12 July 2005 08:32, Louis van Belle wrote:
 what you need is a reg file..

 like this.
 /CUT HERE and remove this line
 REGEDIT4

 ;--MUST
 ; do not roam the following folders
 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
 ExcludeProfileDirs=Temporary Internet Files;History;Temp

 ;--MUST
 ; force Windows XP Professional clients to accept Samba as a PDC
 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
 requiresignorseal=dword:
 signsecurechannel=dword:

 ;--MUST
 ; Do not check for user ownership of Roaming Profile Folders
 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
 CompatibleRUPSecurity=dword:0001

 ;--OPTIONAL
 ; settings for explorer, full path in header

 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Cabin
e tState]
 Settings=hex:0c,00,02,00,0b,01,00,20,60,00,00,00
 FullPath=dword:0001
 FullPathAddress=dword:0001

 ;--OPTIONAL
 ; more custom settings for explorer

 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advan
c ed]
 Hidden=dword:0002
 ShowCompColor=dword:
 HideFileExt=dword:
 DontPrettyPath=dword:
 ShowInfoTip=dword:0001
 HideIcons=dword:
 MapNetDrvBtn=dword:
 WebView=dword:
 Filter=dword:
 SuperHidden=dword:0001
 SeparateProcess=dword:0001
 StartMenuInit=dword:0001
 ShowSuperHidden=dword:0001
 ClassicViewState=dword:0001

 ;OPTIONAL--
 ; show the current user and machine name below the My Computer icon
 ; if you look at this with the regedit it looks much less frigtening

 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID
\ {20D04FE0-3AEA-1069-A2D8-08002B30309D}]
 @=hex(2):25,55,53,45,52,4e,41,4d,45,25,20,25,43,4f,4d,50,55,54,45,52,4e,41,
4 d,\
   45,25,20,25,55,53,45,52,44,4f,4d,41,49,4e,25,00

 ;-OPTIONAL-
 ; configure the desktop in a sensile manner ... smaller decorations
 ; smooth fonts, no animation


 [HKEY_CURRENT_USER\Control Panel\Desktop]
 FontSmoothing=2
 UserPreferencesMask=hex:90,32,00,80
 SmoothScroll=dword:

 [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
 BorderWidth=0
 CaptionHeight=-270
 CaptionWidth=-270
 IconSpacing=-1125
 IconTitleWrap=1
 IconVerticalspacing=-1125
 MenuHeight=-240
 MenuWidth=-240
 ScrollHeight=-210
 ScrollWidth=-210
 Shell Icon BPP=16
 SmCaptionHeight=-225
 SmCaptionWidth=-225
 MinAnimate=0
 ;-END
 /CUT HERE and remove this line

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Namens Martin Petersen
 Verzonden: dinsdag 12 juli 2005 16:26
 Aan: samba@lists.samba.org
 Onderwerp: Re: [Samba] Samba PDC problem
 
 Hi Nicola,
 
 with WinNT, Win2k or WinXP I need to change some permissions.
 Start on the client machines the Group Policy editor (gpedit.msc) and
 try to find the switch Don't check for permissions on profile.
 
 I'am sorry but I don't own a Win32 machine right now.
 
 Your problem is that the Windows internal permission check
 fails on the
 Samba PDC profile.
 
 Hope I could help.
 
 Martin Petersen
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba

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

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


[Samba] Permissions/ACLs change from Windows

2005-07-12 Thread Pierre Dehaen
Hi,

Let's try during US office hours.;-)

I'm sorry to nearly spam you all with this but I can't imagine I'm the only one 
having the problem. I use the simplest config: standalone server, no domain, 
no AD, no ldap, no winbindd. You'll find hereafter my two previous 
unanswered mails describing the problem. Please help.

Regards,
Pierre

On 28 Jun 2005 at 17:35, Pierre Dehaen wrote:
 Hi, 
 
 After three days of googling, searching in this list, reading parts of the 
 pdf, and testing, I  surrender: please help ! 
 
 Summary: 
 I'm running 3.0.10a (binary from www.sunfreeware.com) on Solaris 
 2.6 in standalone  mode (security=user). I use ACLs on files. I cannot, 
 from windows (w2k, wxp pro), add  a user to the permissions of a file. 
 
 
 Details: 
 - The binary was compiled --with-acl-support as smbd -b|grep ACL 
 and the  sunfreeware site confirm. 
 
 - Solaris UFS supports ACLs. 
 
 - I don't use winbindd 
 
 - This is my smb.conf: 
 [global] 
 workgroup = UNIX 
 server string = Samba Server 3.0 
 interfaces = x.x.x.x 
 map to guest = Bad User 
 username map = /usr/local/samba/private/users.map 
 log level = 4 
 log file = /usr/local/samba/var/log.%m 
 max log size = 500 
 deadtime = 30 
 keepalive = 0 
 dns proxy = No 
 ldap ssl = no 
 idmap uid = 1-2 
 idmap gid = 1-2 
 
 - The users.map did not exist at the beginning, but, as the PDF 
 examples have one, I  created it with: 
 root = Administrator 
 
 - My users do exist on Solaris and are the same as the Windows users. 
 
 - The users were added on Samba with smbpasswd -a. 
 
 - My groups are mapped: 
 # net groupmap list | sort 
 Account Operators (S-1-5-32-548) - -1 
 Administrators (S-1-5-32-544) - -1 
 Backup Operators (S-1-5-32-551) - -1 
 Domain Admins (S-1-5-21-3464024308-2102256894-3995807409-512) - root 
 Domain Guests (S-1-5-21-3464024308-2102256894-3995807409-514) - nobody 
 Domain Users (S-1-5-21-3464024308-2102256894-3995807409-513) - staff 
 Engineer (S-1-5-21-3464024308-2102256894-3995807409-1305) - engineer 
 Guests (S-1-5-32-546) - -1 
 Inter (S-1-5-21-3464024308-2102256894-3995807409-1323) - inter 
 Power Users (S-1-5-32-547) - -1 
 Print Operators (S-1-5-32-550) - -1 
 Replicators (S-1-5-32-552) - -1 
 System Operators (S-1-5-32-549) - -1 
 Users (S-1-5-32-545) - -1 
 
 - A share is defined: 
 [home1] 
 path = /export/home1 
 read only = No 
 guest ok = Yes 
 
 - A file is created on the share: 
 # touch /export/home1/test 
 # chown vincent:engineer /export/home1/test 
 # ls -l /export/home1/test 
 -rw-rw-r--   1 vincent   engineer   0 Jun 28 15:50 /export/home1/test 
 
 - From Windows 2K, when I right-click properties, Security, I can see 
 the current  permissions: 
 Engineer (SERVER_NAME\Engineer) 
 Everyone 
 Vincent X (SERVER_NAME\Vincent) 
 
 - Clicking on Advanced shows the permissions (respectively Special, 
 Read, Special).  Click Cancel to come back to the Security tab. 
 
 - But when I click on Add, I receive a window saying You are logged 
 with an account  that does not have access to: SERVER_NAME. Enter 
 the name and password of an  account with permissions for this 
 domain and click ok. 
 
 - The equivalent test on WinNT4 (Properties, Security, Permissions, 
 Add, Show users  works, Click on a user, Add, Read, Ok) works very 
 well: an acl is created on the file. 
 
 
 What's going on ??? I raised the debug level to 3, 4, even 10 but I can't 
 catch anything  useful (to me). 
 
 TIA for any help, 
 Pierre 
 
 
 I hope this is not too long but a level 4 log gives (at the moment I click 
 on the Add  button): 
 [2005/06/28 16:16:02, 3] smbd/process.c:process_smb(1091) 
   Transaction 2072 of length 88 
 [cut - see original message of June 28th for details]



On 29 Jun 2005 at 10:49, Pierre Dehaen wrote:
 Hi again,
 
 FYI here are some links talking about the same problem (but no answer):
 http://lists.samba.org/archive/samba/2003-October/075334.html
 http://lists.samba.org/archive/samba/2003-November/002488.html
 http://www.mcse.ms/message436146.html
 
 Note that on WinNT4 I can partially add permissions to a file: I see the 
 users 
 when I click on Show users and I can use them but I cannot see the groups 
 that are available on the Samba server.
 
 Note also that I see exactly the same when I try to connect a W2K to another 
 W2K (both standalone computers): although I'm connected to the share with 
 a username of the server, from the client I cannot change the permissions on 
 any file of the server !!!
 
 So I have a basic question now: Is it simply possible, from a W2K/XP, to 
 change the permissions of a file on a share of a standalone server, i.e. 
 without both computers being member of a domain ? I can see a possible 
 commercial reason (from who you know) for this not being allowed, but is 
 there also a 

Re: [Samba] Problems uploading printer drivers

2005-07-12 Thread Greg Baker
On July 12, 2005 12:06 pm, Gerald (Jerry) Carter wrote:
 Greg Baker wrote:
 | I'm having trouble uploading printer drivers using Windows
 | XP's APW.  Since  I'm not sure where to look for a
 | solution, perhaps someone here can help.
 |
 | I've tried a few different procedures, but I'll only
 | describe one here.
 |
 | 1) browse to the samba server in windows xp
 | 2) double click on Printers  Faxes
 | 3) right click on some blank window area and select Server Properties
 | 4) click on the drivers tab
 | 5) click on Add...
 | 6) select the driver for the printer in question
 |
 | Once I select the drivers it appears to upload them to
 | the server.  However, after the progress bar finishes
 | I get the following error:
 |
 | The drivers list was not refreshed.  The driver data may be invalid.
 | Windows cannot locate a suitable printer driver.  Contact your
 | administrator for help locating and installing a suitable driver.

 What version of Samba are you using ?  And make sure that you
 are not using 'security = share' since its not really a supported
 configuration when it comes to point-n-print.


I'm using samba v.3.0.10 on Gentoo.

I am using security=user.

Also, as a response to the person who mentioned directory permissions...  All 
of the directories in /var/lib/samba are owned by root:wheel and the printer 
admin is @wheel.  When I upload the drivers, they get owned by 
gbaker:cs-study, which is my uid and primary gid.  I chmod'd all the 
directories 775, except for /var/lib/samba/private..which is 770.

My print$ share is set up as follows..

[print$]
   comment = Printer Driver Download Area
   path = /var/lib/samba/drivers
   browseable = no
   guest ok = no
   read only = yes
   write list = @wheel
   create mask = 0664
   directory mask = 0775

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


[Samba] Samba installation

2005-07-12 Thread WINTERBERGER, JOHN A - SSD

New to Samba and Linux.

I loaded Samba 3.0.14a
ran ./configure
ran make
ran make install
edited /etc/samba/smb.conf to what I want

I try and run usr/local/samba/bin/smbd -d and I get bash command not
found

What do I need to do?

Thanks!
John W.




This e-mail and any files transmitted with it are proprietary and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this e-mail in error please notify the sender. Please note 
that any views or opinions presented in this e-mail are solely those of the 
author and do not necessarily represent those of ITT Industries, Inc. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. ITT Industries accepts no liability for any damage caused by any virus 
transmitted by this e-mail.

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


Re: [Samba] Samba installation

2005-07-12 Thread Stéphane Purnelle

WINTERBERGER, JOHN A - SSD a écrit :


New to Samba and Linux.

I loaded Samba 3.0.14a
ran ./configure
ran make
ran make install
edited /etc/samba/smb.conf to what I want

I try and run usr/local/samba/bin/smbd -d and I get bash command not
found

What do I need to do?

Thanks!
John W.




This e-mail and any files transmitted with it are proprietary and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this e-mail in error please notify the sender. Please note 
that any views or opinions presented in this e-mail are solely those of the 
author and do not necessarily represent those of ITT Industries, Inc. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. ITT Industries accepts no liability for any damage caused by any virus 
transmitted by this e-mail.

 


The exact command line is :

/usr/local/samba/sbin/smbd -d

--
Stéphane Purnelle [EMAIL PROTECTED]
Site Web : http://www.linuxplusvalue.be

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


[Samba] Samba3, ldap and password expiry

2005-07-12 Thread John Little
Hi all!

We are using 1 Samba PDC and 2 bdc (Version
3.0.15pre3-SVN-build-UNKNOWN-PS-SuSE) with openldap2-2.2.6-37.38 on
SLES 9.

New users setup ok and first logon password change works.  Because of
HIPAA we need the passwords to change every 30 days however this isn't
happening. 

I thought that I had this working once upon a time while I was testing
and getting ready for production but somewhere along the line I must've
changed something.  At any rate we're moving into production (3
departments so far!) and this has come to my attention.

Other relevant data:
ldapsearch -x -b dc=hrh,dc=org (ObjectClass=*)
current_ldapsearch.txt   and looking up my account shows:
# jslittl, People, hrh.org
dn: uid=jslittl,ou=People,dc=hrh,dc=org
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
cn: jslittl
sn: jslittl
uid: jslittl
uidNumber: 1004
homeDirectory: /home/jslittl
loginShell: /bin/bash
gecos: System User
sambaSID: S-1-5-21-1418864132-1159184377-506600700-3008
description: domain admin
sambaKickoffTime: 0
sambaPasswordHistory:

 
sambaLogonHours: FF
sambaAcctFlags: [U  ]
gidNumber: 512
sambaPrimaryGroupSID: S-1-5-21-1418864132-1159184377-506600700-512
sambaPwdMustChange: 2147483647
sambaPwdCanChange: 1116358396
sambaPwdLastSet: 1116358396
displayName: little, john
sambaProfilePath: \\hrhdc01\profiles\jslittl

from smbldap-tools.conf:
defaultMaxPasswordAge=30 under the Unix Accounts Configuration
We are using smbldap-tools-0.9.1-1 for this.

Please let me know what else to check/change for this to work.

Regards,
John Little
Hendricks Regional Health
[EMAIL PROTECTED]




Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.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] oplocks, QuickBooks (Samba 3)

2005-07-12 Thread Liz Ackerman
Sorry, didn't mean for that to go to you personally, must remember to choose
reply all and remove personal emails ;o)

I am still curious, I have this for my quickbooks share:

[accting]
comment = Accounting Volume
path = /accting
writeable = yes
valid users = list of valid users
oplocks = no
level2 oplocks = no
force group = group
force user = user
inherit permissions = yes
create mask = 0771
directory mask = 0771
vfs object = recycle:recycle
recycle:repository = .deleted
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes

Is there anything in this config you would suggest changing/removing/adding?

Liz

  Ryan
 
  I am continuing to have issues with my users and their Quickbooks
  application as well as a MS Access shared database.  Can you share
  with me
  your setup?  Are your users able to use Quickbooks on a Samba share
  without
  corrupting the databases?

 Sure, must make the following is in the share dedicated to quickbooks:

 oplocks = no

 Works fine then, but this disables some caching which will slow down
 other files shared in the same directory.  For now, I'm just creating
 a [quickbooks] share just with Quickbooks inside of it.

 Also, I would re-post this question on the list... not just to me.
 It demonstrates other people are having issues and reinforces my
 question.

 
  I haven't used any previous versions of Samba, and we're on Samb
  3.0.14 a
  RedHat ES installation.
 
  Thanks, appreciate any feedback you can provide!
 
  Liz
 

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


[Samba] NT4 Server Manager

2005-07-12 Thread Jason Greene

Where can I get NT4 Server Manager?

All my machines are w2k/XP and my server is Samba 3.x

Do I need NT4 Server Manager? Will the Win2k Server Manager work for 
admining my Samba server?



Regards.

In Christ,

Jason Greene

Angelus Press
IT Manager
2915 Forest Avenue
Kansas City, MO  64109-1516
1.800.966.7337 x306
1.816.753.3557 (fax)
www.angeluspress.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] winbind accepting old passwords

2005-07-12 Thread mcm75
Hello everyone,

I have winbind running on solaris 9, and it appears to run well. Except for 
after changing a password windows side (or with smbpasswd) then loggin on, ssh 
or dt via winbind accept the old password as well as the new one. While then 
starting a citrix or rdesktop connection confirms that active directory only 
accepts the new password. I am already starting winbind with the -n option to 
stop all caching, any ideas?


PAM Configuration follows...

sshdaccount requisite   pam_roles.so.1
sshdaccount sufficient  pam_winbind.so.1
sshdaccount requiredpam_unix_account.so.1
#
sshdpassword required   pam_dhkeys.so.1
sshdpassword requisite  pam_authtok_get.so.1
sshdpassword requisite  pam_authtok_check.so.1
sshdpassword required   pam_authtok_store.so.1
#sshd   password required   pam_pwexport.so.1 /usr/local/bin/new.test 
try_first_pass
sshdpassword required   pam_winbind.so.1
#
sshdauthrequisite   pam_authtok_get.so.1
#sshd   authrequiredpam_pwexport.so.1 /usr/local/bin/new.test 
try_first_pass
sshdauthsufficient  pam_winbind.so.1
sshdauthrequiredpam_dhkeys.so.1
sshdauthrequiredpam_unix_auth.so.1
#
sshdsession requiredpam_winbind.so.1
sshdsession requiredpam_unix_session.so.1


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


[Samba] samba PDC and access to unauthorised shares from w2k client

2005-07-12 Thread J.v.Santen
I posted this problem before, but still didnt get any solution.
I have a Samba 3.0.14 server as PDC and several w2k clients.
I got a problem when a user tries to access an unauthorised share on the Samba 
server.
Instead of the usual message box 'Access Denied' the user gets a message box 
'Enter network password' on his pc.
When trying to access an unauthorised share on one of the other clients, from 
the same client and with the same user-id i tried to reach the share on the 
Samba server, i get the usual msj box 'Access Denied'.

I dont know what this problem is. Both as well the user and machine have a 
valid account on the PDC.

This problem i never had before with Samba 2.2 and i really have no idea where 
its coming from.
If a user wanna access an unauthorised share the 'Access Denied' has to show up 
in stead of the box asking for name and password, right?
Even if i fill in an user-id which has access rights to this share in the 
format DOMAINNAME\USERNAME and PASSWORD i get a msj box
'The credentials supplied conflict with an existing set of credentials'
Can someone help me with this problem pls. Im really stucked and dont know 
where to look anymore.
If needed i can send log-files, packetdumps and/he smb.conf.

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


Re: [Samba] Problems uploading printer drivers

2005-07-12 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greg Baker wrote:

| I'm using samba v.3.0.10 on Gentoo.
|
| I am using security=user.
|
| Also, as a response to the person who mentioned
| directory permissions...  All  of the directories
| in /var/lib/samba are owned by root:wheel and the
| printer  admin is @wheel.  When I upload the
| drivers, they get owned by  gbaker:cs-study, which
| is my uid and primary gid.  I chmod'd all the
| directories 775, except for /var/lib/samba/private..which
| is 770.
|
| My print$ share is set up as follows..
|
| [print$]
|comment = Printer Driver Download Area
|path = /var/lib/samba/drivers
|browseable = no
|guest ok = no
|read only = yes
|write list = @wheel
|create mask = 0664
|directory mask = 0775

Greg,

In release  3.0.11 you need to set the printer admin
option in the [global] section of smb.conf to give
user's the necessary permission to update the nt*tdb
files.  CHeck that this is working (sounds like it is).
And make sure that you don't have 'use client driver
= yes' set anywhere in smb.conf.





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

iD8DBQFC1CqhIR7qMdg1EfYRAtGzAKDVWtcbEdJnH2vizHsbfBPXCbwaMwCg5mJo
zd51hCowuTkRhB+X2K+NYtY=
=AfoQ
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] NEWBIE: libsendfile.so.1 missing

2005-07-12 Thread Dave . Turner
I've installed samba before, but it was an older version. This time I'm
having some trouble. I'm using the Solaris8-Sparc packages from
sunfreeware.com and got the error:
 
/usr/local/samba/sbin/smbd: fatal: libsendfile.so.1:  
 
I made sure that libiconv-1.8-sol8-intel-local was installed and then
reinstalled it anyway, but the libsendfile.so.1 was not located in /usr/bin
where it is located on my other server with the older version of Samba. I
tried manually copying the files over and got this error:
 
fatal: /usr/local/lib/libiconv.so.2: wrong ELF data format: ELFDATA2LSB
 
What could I be screwing up? 
 
Thanks,
Dave
___
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.

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


[Samba] xfs filesystem corruption

2005-07-12 Thread mourik jan c heupink

dear list.

I was just wondering, is there anyone here using sles9 with xfs in an lvm?

We had severe filesystem corruption on a server today, and only two 
things were changed: I updated via yast online update (lot's of updates, 
strange enough, including an lvm update) and I had to replace a drive in 
my hardware 6 disk raid array. (IBM 5i, raid 5)


Now I was wondering what caused the corruption: the lvm updates, or the 
disk change... (or even something else..?) therefore I'm asking here...


Anyone having xfs/lvm problems/corruption after the updates?

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


[Samba] INTERACTIVE logon works, NETWORK logon does not with Samba 3.0.14a

2005-07-12 Thread Constantine Filin
Greetings -

I have Fedora Core 2 Linux box with Samba 3.0.14a compiled 
and installed there.

Here's output of testparm:

TESTPARM OUTPUT
[EMAIL PROTECTED] ~/Downloads/samba-3.0.14a]# /usr/bin/testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [tmp]
Processing section [cf]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
 workgroup = INTERMEDIA
 server string = CF LINUX BOX
 password server = None
 smb passwd file = /etc/samba/smbpasswd
 username map = /etc/samba/smbusers
 log level = 10 passdb:5 auth:10
 log file = /var/log/samba/%m.log
 max log size = 200
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = /etc/printcap
 wins proxy = Yes
 wins server = 207.5.70.254
 hosts allow = 204.147.182.21/255.255.255.0

[homes]
 comment = Home Directories
 read only = No
 browseable = No

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

[tmp]
 comment = Temporary file space
 path = /tmp
 read only = No
 guest ok = Yes

[cf]
 comment = CF Home
 path = /home/cf
 read only = No
TESTPARM OUTPUT

Also here is my /etc/samba/smbusers

[EMAIL PROTECTED] /etc/samba]# cat smbusers
root = INTERMEDIA\backup
cf = INTERMEDIA\cf

In smbpasswd I have records for user cf and user root.

I can connect from my Windows 2003 server to share cf as user
INTERMEDIA\cf when I logon to this Windows station with INTERACTIVE
type of logon.

However, when I logon as the same user to the same Windows station with
NETWORK type of logon (e.g. to a telnet service), and then from that
Windows station, I cannot connect to the same Samba share on my Linux
box.
The error message I get is Access Denied.

Further research in the logs shows that when I come to Linux box with
NETWORK logon, Linux box cannot determine that I am coming as
INTERMEDIA\cf user and attempts to connect me to that share as guest,
which is disallowed.
Eventually samba server sends NT_STATUS_ACCESS_DENIED message to the
Windows station. The appropriate log section follows:

LOG
[2005/07/12 12:55:22, 3]
smbd/sesssetup.c:reply_sesssetup_and_X_spnego(566)
  NativeOS=[Windows Server 2003 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 5.2]
[2005/07/12 12:55:22, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(606)
  Got user=[] domain=[] workstation=[PROMQUEEN] len1=1 len2=0
[2005/07/12 12:55:22, 6] param/loadparm.c:lp_file_list_changed(2707)
  lp_file_list_changed()
  file /etc/samba/smb.conf - /etc/samba/smb.conf  last mod_time: Tue
Jul 12 11:58:26 2005

[2005/07/12 12:55:22, 5] auth/auth_util.c:make_user_info_map(224)
  make_user_info_map: Mapping user []\[] from workstation [PROMQUEEN]
[2005/07/12 12:55:22, 5] auth/auth_util.c:make_user_info(132)
  attempting to make a user_info for  ()
[2005/07/12 12:55:22, 5] auth/auth_util.c:make_user_info(142)
  making strings for 's user_info struct
[2005/07/12 12:55:22, 5] auth/auth_util.c:make_user_info(184)
  making blobs for 's user_info struct
[2005/07/12 12:55:22, 10] auth/auth_util.c:make_user_info(200)
  made an encrypted user_info for  ()
[2005/07/12 12:55:22, 3] auth/auth.c:check_ntlm_password(219)
  check_ntlm_password:  Checking password for unmapped user
[EMAIL PROTECTED] with the new password interface
[2005/07/12 12:55:22, 3] auth/auth.c:check_ntlm_password(222)
  check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
[2005/07/12 12:55:22, 10] auth/auth.c:check_ntlm_password(231)
/LOG

When I connect with INTERACTIVE logon, the same log section looks 
like this:

SUCCESSFUL_LOG
  user_in_list: checking if user |cf| is in winbind group
|INTERMEDIA\cf|
[2005/07/12 14:05:04, 5] auth/auth_util.c:make_user_info_map(224)
  make_user_info_map: Mapping user [INTERMEDIA]\[cf] from workstation
[PROMQUEEN]
[2005/07/12 14:05:04, 5] auth/auth_util.c:make_user_info(132)
  attempting to make a user_info for cf (cf)
[2005/07/12 14:05:04, 5] auth/auth_util.c:make_user_info(142)
  making strings for cf's user_info struct
[2005/07/12 14:05:04, 5] auth/auth_util.c:make_user_info(184)
  making blobs for cf's user_info struct
[2005/07/12 14:05:04, 10] auth/auth_util.c:make_user_info(200)
  made an encrypted user_info for cf (cf)
[2005/07/12 14:05:04, 3] auth/auth.c:check_ntlm_password(219)
  check_ntlm_password:  Checking password for unmapped user
[EMAIL PROTECTED] with the new password interface
[2005/07/12 14:05:04, 3] auth/auth.c:check_ntlm_password(222)
  check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
[2005/07/12 14:05:04, 10] auth/auth.c:check_ntlm_password(231)
/SUCCESSFUL_LOG


Question:

How can I connect to Samba shares with NETWORK type of logon?

Thanks in advance.

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


Re: [Samba] Help replacing Windows 2003 Server

2005-07-12 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pablo Gainza Cirauqui wrote:

| I believe you have to use the samba regedit tool
| to manually disable it.  However you can build up
| a script.  Read the domain controller section
| on the official samba HOWTO.
|
| Can anyone tell me is there away\if there is a
| unix version of Microsoft Group Policy or something?
| I need to stop access to local drives for
| some users and other things.

I'll bet we could build a gpedit.msc pretty easy
that you could run against remote Windows clients.
If anyone is interested in working on this, let me
know.

And I'll try to get the available projects page
at Samba.org added in the next few days.






cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC1DHaIR7qMdg1EfYRAv2SAJ93+syvB5vC+PlqHQvVfBtIj3o2PQCgsJj2
Tmtio7UcOt65tCXxHS50LiA=
=ul0o
-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] Samba3, ldap and password expiry

2005-07-12 Thread Adam Tauno Williams
 New users setup ok and first logon password change works.  Because of
 HIPAA we need the passwords to change every 30 days however this isn't
 happening. 
 I thought that I had this working once upon a time while I was testing
 and getting ready for production but somewhere along the line I must've
 changed something.  At any rate we're moving into production (3
 departments so far!) and this has come to my attention.

Have you tried setting a password change policy via pdbedit?

 Other relevant data:
 ldapsearch -x -b dc=hrh,dc=org (ObjectClass=*)
 current_ldapsearch.txt   and looking up my account shows:
 # jslittl, People, hrh.org
 dn: uid=jslittl,ou=People,dc=hrh,dc=org
 objectClass: top
 objectClass: inetOrgPerson
 objectClass: posixAccount
 objectClass: shadowAccount
 objectClass: sambaSamAccount
 cn: jslittl
 sn: jslittl
 uid: jslittl
 uidNumber: 1004
 homeDirectory: /home/jslittl
 loginShell: /bin/bash
 gecos: System User
 sambaSID: S-1-5-21-1418864132-1159184377-506600700-3008
 description: domain admin
 sambaKickoffTime: 0
 sambaPasswordHistory:
 
  
 sambaLogonHours: FF
 sambaAcctFlags: [U  ]
 gidNumber: 512
 sambaPrimaryGroupSID: S-1-5-21-1418864132-1159184377-506600700-512
 sambaPwdMustChange: 2147483647

This is way more than 30 days into the future.

 sambaPwdCanChange: 1116358396
 sambaPwdLastSet: 1116358396


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Samba 3.0.20pre2 Available for Download

2005-07-12 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

==
  Sometimes you have to be someone
 else in order to be yourself.
-- Michael Samuel Finn
==
Release Announcements
=
This is a preview release of the Samba 3.0.20 code base and
is provided for testing only.  This release is *not* intended
for production servers.  There has been a substantial amount
of development since the 3.0.14a stable release (and since the
3.0.20pre1 release as well).  We would like to ask the Samba
community for help in testing these changes as we work towards
the next official, production Samba 3.0 release.  This is
the last anticipated preX release before moving onto the
Release Candidate state of testing.

Additional features introduced in Samba 3.0.20pre2 include:

~  o Experimental, asynchronous IO file serving support.
~  o Completed Support for Microsoft Print Migrator.
~  o New Winbind IDmap plugin (ad) for retrieving uid and gid
~from AD servers which maintain the SFU user and group
~attributes.
~  o Rewritten support for POSIX pathnames when utilizing
~the Linux CIFS fs client.


What happened to 3.0.15 - 3.0.19?
==

After some discussion it was deemed that the amount of changes
going into the next Samba 3.0 release needed something to catch
people's attention.  Skipping several releases was chosen as
the best solution with the least overhead.  There will be no
3.0.15 - 3.0.19 ever released.  The next production release
following 3.0.20 should be 3.0.21.

The original announcement about the version number change can
be found in the samba mailing list archives:

http://marc.theaimsgroup.com/?l=sambam=111721010206997w=2


Support for Microsoft Print Migrator


Samba 3.0.20pre2 includes full support for migrating printers from
Windows servers or other Samba servers via the Microsoft Print
Migrator tool.  Restoring printers requires a working add printer
command defined in smb.conf.  Current; support also allows
administrators to create a master list of printer drivers which
can be restored in bulk on new (or existing) Samba installations.


Asynchronous IO Support
===

Experimental support for async IO has been added to smbd for
certain platforms.  To enable this new feature, Samba must be
compiled to include the --with-aio-support configure option.
In addition, the aio read size and aio write size to non-zero
values.  See the smb.conf(5) man page for more details on these
settings.



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID F17F9772).  The source code can be
downloaded from:

http://download.samba.org/samba/ftp/pre/

The release notes are available online at:

http://www.samba.org/samba/ftp/pre/WHATSNEW-3-0-20pre2.txt

Binary packages are available at

http://download.samba.org/samba/ftp/Binary_Packages/

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

--Enjoy
The Samba Team
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC1BJTIR7qMdg1EfYRAkf4AJ9UIZtIQrT+T6RxbCQigBFI0DHFWgCfUskj
Q7n+2kcZnm0B56hixh+JL9U=
=wIfm
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] unix charset = LOCALE

2005-07-12 Thread juliano

Andrew Bartlett said once that 'unix charset = LOCALE' means to force samba to 
read 'LANG=' from environment.


echo $LANG
en_US



cat /etc/sysconfig/i18n
LANG=en_US.UTF-8
SUPPORTED=en_US.UTF-8:en_US:en
SYSFONT=lat1-16


When i restart smbd/nmbd all my files inside all shares change their names. Its 
looks an charset mis-match for me.

My clients are Windows XP SP2.

My clients are UTF8
My Samba reads charset from Linux
My Linux is 'en_US.UTF-8'

Everything is UTF8? or not?

Why its happens ?

Thanks for any help. Juliano Rodrigues.





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


[Samba] Error looking local domain groups

2005-07-12 Thread Xim Tur i Massanet
Hi all!

I've got a computer with winbind user and group name resolution.

I can list all global groups but I cannot list local domain groups. This
is the error I can see on the log:

[2005/07/12 23:45:52, 1] nsswitch/winbindd_group.c:fill_grent_mem(134)
  could not lookup membership for group rid
S-1-5-21-102064544-280963791-1022575233-31965 in domain UPVNET (error:
NT_STATUS_NO_SUCH_GROUP)


but I can see this group using wbinfo:

$ wbinfo -n upvnet\ca becarios dsn
S-1-5-21-102064544-280963791-1022575233-31965 Local Group (4)

$ wbinfo -s S-1-5-21-102064544-280963791-1022575233-31965
UPVNET\CA Becarios DSN 4


Any ideas?

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


[Samba] winbind + pam - caching + intermittant delay ==~ bug?

2005-07-12 Thread Geoff Oakham

Hi everybody,

I think I've found a bug in winbind, or I'm out to lunch and need of 
help.. configuring winbind.  Basically, it's working great except once 
in a while it takes 2-5 minutes for a single authentication.  I've also 
seen symptoms winbind isn't caching credentials.


Here are my details:

* for testing purposes, proftpd was configured only authenticate against 
winbind.  I used this pam config:


   authrequiredpam_winbind.so debug
   account requiredpam_winbind.so debug

* Samba was previously setup to participate in the local domain.  It 
works, you can connect to the file shares and everything's happy.  (The 
configuration file is included below.)


* The domain controllers are running Server 2003, but are otherwise in 
good health.


* There is network activity for each authentication request (successful 
or otherwise).


* There is a log entry on the domain controller for each authentication 
attempt.


* Even with debugging turned on, the logs on the Linux box don't report 
anything insightful.  (Ask me if you want to see them anyways!)


The smb.conf looks like this:

[global]
  workgroup = KEWL
  server string = %h server (Samba %v)
;  wins support = no
  wins server = 10.1.0.2
  dns proxy = no
;  name resolve order = lmhosts host wins bcast
  log file = /var/log/samba/log.%m
  log level = 10
  max log size = 1000
;  syslog only = no
  syslog = 0
  panic action = /usr/share/samba/panic-action %d
  security = domain
  encrypt passwords = true
  passdb backend = tdbsam guest
  obey pam restrictions = yes
  invalid users = root
  passwd program = /usr/bin/passwd %u
  passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .

  socket options = TCP_NODELAY
;; winbind separator = '\'
  winbind cache time = 300
  template shell = /bin/bash
  template homedir = /home/%D/%U
  idmap uid = 1-2
  idmap gid = 1-2
  winbind use default domain = yes
  password server = 10.1.0.2, 10.1.0.3, *

[shared snipped]
...

If anyone has any suggestions or has had a similar experience, I would 
be happy to hear from you!  Thanks in advance for your help,


Geoff


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


Re: [Samba] unix charset = LOCALE

2005-07-12 Thread Mi

juliano wrote:

Andrew Bartlett said once that 'unix charset = LOCALE' means to force 
samba to read 'LANG=' from environment.



echo $LANG
en_US



Well, en_US is not UTF8

When i restart smbd/nmbd all my files inside all shares change their 
names.


In which application? On Windows clients? How are the files viewed on 
Unix? In the shell? In KDE or Gnome, if you have it installed?


Can you create new files on Linux correctly?

How are the characters changed?

Do you get UTF8 displayed as plain 8 bit (every accented letter shown as 
2 accented letters, the first one often being an uppercase accented A)?


What characters do you get, and what should they be?

It's hard to guess what is wrong without having some more info.

Have you tried unix chaset = UTF8 in smb.conf?

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


Re: [Samba] xfs filesystem corruption

2005-07-12 Thread James Peach
On 7/13/05, mourik jan c heupink [EMAIL PROTECTED] wrote:
 dear list.
 
 I was just wondering, is there anyone here using sles9 with xfs in an lvm?
 
 We had severe filesystem corruption on a server today, and only two
 things were changed: I updated via yast online update (lot's of updates,
 strange enough, including an lvm update) and I had to replace a drive in
 my hardware 6 disk raid array. (IBM 5i, raid 5)
 
 Now I was wondering what caused the corruption: the lvm updates, or the
 disk change... (or even something else..?) therefore I'm asking here...
 
 Anyone having xfs/lvm problems/corruption after the updates?

This could be a lot of things. If you lost a disk, it might be
possible for the volume rebuild to fail. Losing a drive at the same
time as an LVM update sounds a little fishy, but I don't have any
experience with LVM.

You might try asking the XFS folks on [EMAIL PROTECTED] Someone
there will probably have some experience with the XFS/LVM combination.
You'll need to provide the output of xfs_growfs -n for the filesystem
in question, as well as the LVM config details and all the package
version numbers (ie. for the original LVM package and the one you
updated to).

-- 
James Peach | [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Printing Permissions

2005-07-12 Thread Steve Jr Ramage
I can't seem to print unless I set /var/spool/samba and 
/var/spool/hl1440 to 777, and even then I can't see the printer queue, I 
get 'Access Denied, unable to connect'. Samba, is my NT4 PDC. sjr is an 
admin user. My NT Username is SJr, and my passwd file has an entry for 
SJr as well as sjr (both with the same UID).


Here are the revelant sections of my smb.conf

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
write list= sjr, SJr
valid users = sjr, SJr
printable = yes

[HL-1440]
comment = Brother HL-1440
printable = yes
path = /var/spool/hl1440/
public = yes
valid users = sjr, SJr
guest ok = yes
printer admin = sjr, SJr
browseable = yes

[print$]
comment = Printer Drivers
path = /etc/samba/drivers/
browseable = yes
guest ok = no
read only = yes

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


Re: [Samba] xfs filesystem corruption

2005-07-12 Thread gilbertonunes
Em Ter 12 Jul 2005 20:56, James Peach escreveu:

Hi

Some days ago, I have the same problem with XFS file system...

I just use xfs_repair, after umount the partition...
This's a slow process, so be patience...
I many case, this work very well...
Mount your partition again and there's all your date
I hope :-)

Do you wanna more?
Read man xfs_repair


 On 7/13/05, mourik jan c heupink [EMAIL PROTECTED] wrote:
  dear list.
 
  I was just wondering, is there anyone here using sles9 with xfs in an
  lvm?
 
  We had severe filesystem corruption on a server today, and only two
  things were changed: I updated via yast online update (lot's of updates,
  strange enough, including an lvm update) and I had to replace a drive in
  my hardware 6 disk raid array. (IBM 5i, raid 5)
 
  Now I was wondering what caused the corruption: the lvm updates, or the
  disk change... (or even something else..?) therefore I'm asking here...
 
  Anyone having xfs/lvm problems/corruption after the updates?

 This could be a lot of things. If you lost a disk, it might be
 possible for the volume rebuild to fail. Losing a drive at the same
 time as an LVM update sounds a little fishy, but I don't have any
 experience with LVM.

 You might try asking the XFS folks on [EMAIL PROTECTED] Someone
 there will probably have some experience with the XFS/LVM combination.
 You'll need to provide the output of xfs_growfs -n for the filesystem
 in question, as well as the LVM config details and all the package
 version numbers (ie. for the original LVM package and the one you
 updated to).

 --
 James Peach | [EMAIL PROTECTED]

-- 
Acesse o link abaixo para conhecer nossa empresa:
http://www.selbetti.com.br/apresentacao
__


Gilberto Nunes
Administrador de Rede
Selbetti Equip. Escritório
Fone = 441-6034
www.selbetti.com.br
[EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] No Mr. Samba, you are incorrect I do NOT need to change my password

2005-07-12 Thread Steve Jr Ramage
Basically I migrated my NT4 server to Samba 3 recently. Long story short 
one of the 'secondary accounts' seems to get prompted to change his 
password even with the X set. One of my other accounts seems fine:


Unix username:SJr
NT username:  SJr
Account Flags:[UX ]
Logon time:   Wed, 01 Jun 2005 23:59:57 GMT
Logoff time:  Sat, 08 May 2004 13:04:02 GMT
Kickoff time: Mon, 18 Jan 2038 19:14:07 GMT
Password last set:Fri, 07 Nov 2003 15:57:33 GMT
Password can change:  0
Password must change: Mon, 18 Jan 2038 19:14:07 GMT

Here is the broken account.

Unix username:Work
NT username:  Work
Account Flags:[UX ]
Logoff time:  Mon, 18 Jan 2038 19:14:07 GMT
Kickoff time: Mon, 18 Jan 2038 19:14:07 GMT
Password last set:Thu, 02 Jun 2005 01:07:23 GMT
Password can change:  Thu, 02 Jun 2005 01:07:23 GMT
Password must change: Thu, 14 Jul 2005 23:54:55 GMT

It seems that samba is ignoring the X and just using the Password must 
change field, is this a bug, or am I an idiot?



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


Re: [Samba] winbind + pam - caching + intermittant delay ==~ bug?

2005-07-12 Thread Xim Tur i Massanet
En/na Geoff Oakham ha escrit:
 Hi everybody,
 
 I think I've found a bug in winbind, or I'm out to lunch and need of
 help.. configuring winbind.  Basically, it's working great except once
 in a while it takes 2-5 minutes for a single authentication.  I've also
 seen symptoms winbind isn't caching credentials.

I had similar symptoms. The problem was that winbind stopped resolving
user and group names for this period. A simple ps aux also taked some
minutes if there was a process owned by a domain user.

These delays disappeared after moving security from domain to ads
and joining the domain as a 2k server. This helped to me.

good luck!

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


[Samba] Question regarding printers - problem with current rleease

2005-07-12 Thread Karl Denninger
Hi folks;

Not sure what's going on here

Running 3.0.14a here, with a fairly default config.  

Base OS is FreeBSD 5.4-STABLE.

FreeBSD 5.4-STABLE #11: Fri Apr  8 09:48:24 CDT 2005 [EMAIL 
PROTECTED]:/usr/obj/usr/src/sys/KSD-SMP 

Here's the output from testparm


Load smb config files from /usr/local/etc/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [faxserver]
Processing section [pics]
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = DENNINGER
server string = Home Office FileServer
interfaces = 192.168.1.0/24
max log size = 50
deadtime = 15
domain logons = Yes
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
remote announce = 192.168.1.255
invalid users = root
hosts allow = 192.168.1.0/255.255.255.0, 127.
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /disk/spool/samba
printer admin = @wheel
printable = Yes
browseable = No

[faxserver]
comment = Fax Server Files
path = /disk/system
valid users = system, karl
read only = No
create mask = 0765

[pics]
comment = Picture files
path = /pics
valid users = system, karl
read only = No
create mask = 0765


Ok, now the problem...

Everything works correctly EXCEPT that I cannot see the contents of a print
queue.  I can browse printers (as I specified that was ok), I can connect to
them, AND I CAN PRINT.

However, the status comes up as access denied, unable to connect when I
look at it from an XP workstation that is signed on and connected to the
printer.  I am completely unable to view the print queue.  Obviously I can't
remove a print job either, since I can't see them.

Local viewing of the queue from Unix works (e.g. lpq -PLaser does the
expected thing, and produces the expected output)

Any ideas what I've done wrong?  Read the FAQ and install instructions, I
can't see anything obviously screwed up - and everything else - including
printing itself - works 

Thanks!

--
-- 
Karl Denninger ([EMAIL PROTECTED]) Internet Consultant  Kids Rights Activist
http://www.denninger.netMy home on the net - links to everything I do!
http://scubaforum.org   Your UNCENSORED place to talk about DIVING!
http://homecuda.com Emerald Coast: Buy / sell homes, cars, boats!
http://genesis3.blogspot.comMusings Of A Sentient Mind


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


[Samba] McAfee GroupShield Alert

2005-07-12 Thread XRTEASTVirusAlert
McAfee GroupShield™ Alert 

McAfee GroupShield discovered a problem with the following email. See
your system administrator for further information. 

Date/Time sent: 13 Jul 2005 01:24:48
Subject line: [Samba] Rejected posting to [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: samba@lists.samba.org
Action taken: Deleted Message
Reason: Anti-Virus
Rule Group: 


Copyright © 1993-2003, Networks Associates Technology, Inc.
All Rights Reserved.
http://www.mcafeesecurity.com http://www.mcafeesecurity.com/  

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


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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:02:20 + (Tue, 12 Jul 2005)
New Revision: 8347

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

Log:
replace the perl provision script with a ejs script

I don't mind depending on perl at compile time, but I want to avoid
depending on it at runtime. This also will make it easy to add web
install wizard

Removed:
   branches/SAMBA_4_0/source/setup/provision.pl
Modified:
   branches/SAMBA_4_0/source/setup/provision


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


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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:06:30 + (Tue, 12 Jul 2005)
New Revision: 8348

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

Log:
switch selftest to use the new provision script

Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:02:20 UTC 
(rev 8347)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:06:30 UTC 
(rev 8348)
@@ -54,9 +54,12 @@
 incdir=`dirname $0`
 . $incdir/test_functions.sh
 
+PATH=bin:$PATH
+export PATH
+
 rm -rf $PREFIX/*
 mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $TLSDIR
-./setup/provision.pl --quiet --outputdir $PRIVATEDIR --domain $DOMAIN --realm 
$REALM \
+./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
 --adminpass $PASSWORD --root=$ROOT
 
 cat $CONFFILEEOF



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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:08:14 + (Tue, 12 Jul 2005)
New Revision: 8349

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

Log:
as we don't use standard dirs, we need to create smb.conf before we run 
provision


Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:06:30 UTC 
(rev 8348)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:08:14 UTC 
(rev 8349)
@@ -59,8 +59,6 @@
 
 rm -rf $PREFIX/*
 mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $TLSDIR
-./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
---adminpass $PASSWORD --root=$ROOT
 
 cat $CONFFILEEOF
 [global]
@@ -92,6 +90,9 @@
cifs:share = tmp
 EOF
 
+./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
+--adminpass $PASSWORD --root=$ROOT
+
 if [ x$RUN_FROM_BUILD_FARM = xyes ];then
CONFIGURATION=$CONFIGURATION --option=\torture:progress=no\
 fi



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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:12:52 + (Tue, 12 Jul 2005)
New Revision: 8350

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

Log:
fixed the --root option to provision




Modified:
   branches/SAMBA_4_0/source/setup/provision


Changeset:
Modified: branches/SAMBA_4_0/source/setup/provision
===
--- branches/SAMBA_4_0/source/setup/provision   2005-07-12 06:08:14 UTC (rev 
8349)
+++ branches/SAMBA_4_0/source/setup/provision   2005-07-12 06:12:52 UTC (rev 
8350)
@@ -5,7 +5,7 @@
Released under the GNU GPL v2 or later
 */
 
-var options = new Object();
+options = new Object();
 ok = GetOptions(ARGV, options, 
POPT_AUTOHELP,
POPT_COMMON_SAMBA,
@@ -150,7 +150,6 @@
if (arguments.length == 4) {
extra = arguments[3];
}
-   printVars(lpGet(setup directory));
 
var db = lpGet(private dir) + / + dbname;
var src = lpGet(setup directory) + / + ldif;



svn commit: samba r8351 - in branches/SAMBA_4_0/source/web_server: .

2005-07-12 Thread tpot
Author: tpot
Date: 2005-07-12 06:17:19 + (Tue, 12 Jul 2005)
New Revision: 8351

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

Log:
When finished sending call stream_terminate_connection() with a nice
message instead of NULL.

Fix up some other terminate messgages to be consistent.

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


Changeset:
Modified: branches/SAMBA_4_0/source/web_server/web_server.c
===
--- branches/SAMBA_4_0/source/web_server/web_server.c   2005-07-12 06:12:52 UTC 
(rev 8350)
+++ branches/SAMBA_4_0/source/web_server/web_server.c   2005-07-12 06:17:19 UTC 
(rev 8351)
@@ -52,7 +52,7 @@
   struct timeval t, void *private)
 {
struct websrv_context *web = talloc_get_type(private, struct 
websrv_context);
-   stream_terminate_connection(web-conn, websrv_context: timeout);
+   stream_terminate_connection(web-conn, websrv_timeout: timed out);
 }
 
 /*
@@ -110,7 +110,7 @@
return;
 
 failed:
-   stream_terminate_connection(conn, websrv_recv: failed\n);
+   stream_terminate_connection(conn, websrv_recv: failed);
 }
 
 
@@ -164,7 +164,7 @@
web-output.fd == -1) {
talloc_free(web-tls);
web-tls = NULL;
-   stream_terminate_connection(web-conn, NULL);
+   stream_terminate_connection(web-conn, websrv_send: finished 
sending);
}
 }
 
@@ -248,7 +248,7 @@
return;
 
 failed:
-   task_server_terminate(task, Failed to startup web server task);
+   task_server_terminate(task, websrv_task_init: failed to startup web 
server task);
 }
 
 



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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:17:40 + (Tue, 12 Jul 2005)
New Revision: 8352

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

Log:
we need to override setup directory for the build farm hosts





Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:17:19 UTC 
(rev 8351)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 06:17:40 UTC 
(rev 8352)
@@ -69,6 +69,7 @@
pid directory = $PIDDIR
ncalrpc dir = $NCALRPCDIR
lock dir = $LOCKDIR
+   setup directory = $SRCDIR/setup
 js include = $SRCDIR/scripting/libjs
name resolve order = bcast
interfaces = lo*



svn commit: samba r8353 - in branches/SAMBA_4_0/swat: images scripting

2005-07-12 Thread tpot
Author: tpot
Date: 2005-07-12 06:31:17 + (Tue, 12 Jul 2005)
New Revision: 8353

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

Log:
Use a PNG instead of a GIF for padding.  Also fixes a file not found
error as only PNG files were being installed by 'make installswat'.

Added:
   branches/SAMBA_4_0/swat/images/linkpad.png
Removed:
   branches/SAMBA_4_0/swat/images/linkpad.gif
Modified:
   branches/SAMBA_4_0/swat/scripting/common.js
   branches/SAMBA_4_0/swat/scripting/header_columns.esp
   branches/SAMBA_4_0/swat/scripting/header_plain.esp


Changeset:
Deleted: branches/SAMBA_4_0/swat/images/linkpad.gif
===
(Binary files differ)

Added: branches/SAMBA_4_0/swat/images/linkpad.png
===
(Binary files differ)


Property changes on: branches/SAMBA_4_0/swat/images/linkpad.png
___
Name: svn:mime-type
   + application/octet-stream

Modified: branches/SAMBA_4_0/swat/scripting/common.js
===
--- branches/SAMBA_4_0/swat/scripting/common.js 2005-07-12 06:17:40 UTC (rev 
8352)
+++ branches/SAMBA_4_0/swat/scripting/common.js 2005-07-12 06:31:17 UTC (rev 
8353)
@@ -55,9 +55,8 @@
 */
 function always_allowed(uri) {
var allowed = new Array(/images/favicon.ico, 
-   /images/linkpad.gif,
+   /images/linkpad.png,
/images/logo.png,
-   /images/logo.gif,
/style/main.css,
/style/common.css);
for (i in allowed) {

Modified: branches/SAMBA_4_0/swat/scripting/header_columns.esp
===
--- branches/SAMBA_4_0/swat/scripting/header_columns.esp2005-07-12 
06:17:40 UTC (rev 8352)
+++ branches/SAMBA_4_0/swat/scripting/header_columns.esp2005-07-12 
06:31:17 UTC (rev 8353)
@@ -49,7 +49,7 @@
 /div
 
 div id=logo
-  div class=logo_hacka href=/@@global.SESSIONURIimg 
src=/images/linkpad.gif alt=SWAT //a/div
+  div class=logo_hacka href=/@@global.SESSIONURIimg 
src=/images/linkpad.png alt=SWAT //a/div
 /div
 
 div class=slogan

Modified: branches/SAMBA_4_0/swat/scripting/header_plain.esp
===
--- branches/SAMBA_4_0/swat/scripting/header_plain.esp  2005-07-12 06:17:40 UTC 
(rev 8352)
+++ branches/SAMBA_4_0/swat/scripting/header_plain.esp  2005-07-12 06:31:17 UTC 
(rev 8353)
@@ -40,7 +40,7 @@
 /div
 
 div id=logo
-  div class=logo_hacka href=/img src=/images/linkpad.gif alt=SWAT 
//a/div
+  div class=logo_hacka href=/img src=/images/linkpad.png alt=SWAT 
//a/div
 /div
 
 div class=slogan



svn commit: samba r8354 - in branches/SAMBA_4_0/swat/scripting: .

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:39:36 + (Tue, 12 Jul 2005)
New Revision: 8354

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

Log:
work around a js bug found by tpot






Modified:
   branches/SAMBA_4_0/swat/scripting/common.js


Changeset:
Modified: branches/SAMBA_4_0/swat/scripting/common.js
===
--- branches/SAMBA_4_0/swat/scripting/common.js 2005-07-12 06:31:17 UTC (rev 
8353)
+++ branches/SAMBA_4_0/swat/scripting/common.js 2005-07-12 06:39:36 UTC (rev 
8354)
@@ -100,10 +100,11 @@
 }
 
 function simple_menu() {
-   var m = MenuObj(arguments[0], (arguments.length-1)/2);
+   var i, m = MenuObj(arguments[0], (arguments.length-1)/2);
for (i=0;im.element.length;i++) {
-   m.element[i].label = arguments[1+(i*2)];
-   m.element[i].link = arguments[2+(i*2)];
+   var ndx = i*2;
+   m.element[i].label = arguments[ndx+1];
+   m.element[i].link = arguments[ndx+2];
}
display_menu(m);
 }



svn commit: samba r8355 - in branches/SAMBA_4_0: source/scripting/ejs source/scripting/libjs source/setup testprogs/ejs

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 06:57:25 + (Tue, 12 Jul 2005)
New Revision: 8355

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

Log:
- added a vsprintf() function

- removed the --outputdir option from provision, as its not used any
  more (as ejs knows the real paths)









Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
   branches/SAMBA_4_0/source/scripting/libjs/base.js
   branches/SAMBA_4_0/source/setup/provision
   branches/SAMBA_4_0/testprogs/ejs/bugs.js
   branches/SAMBA_4_0/testprogs/ejs/sprintf.js


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c   2005-07-12 
06:39:36 UTC (rev 8354)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c   2005-07-12 
06:57:25 UTC (rev 8355)
@@ -272,6 +272,41 @@
 }
 
 /*
+  used to build your own print function
+ str = vsprintf(args);
+*/
+static int ejs_vsprintf(MprVarHandle eid, int argc, struct MprVar **argv)
+{
+   struct MprVar **args, *len, *v;
+   int i, ret, length;
+   if (argc != 1 || argv[0]-type != MPR_TYPE_OBJECT) {
+   ejsSetErrorMsg(eid, vsprintf invalid arguments);
+   return -1;
+   }
+   v = argv[0];
+   len = mprGetProperty(v, length, NULL);
+   if (len == NULL) {
+   ejsSetErrorMsg(eid, vsprintf takes an array);
+   return -1;
+   }
+   length = mprToInt(len);
+   args = talloc_array(mprMemCtx(), struct MprVar *, length);
+   if (args == NULL) {
+   return -1;
+   }
+
+   for (i=0;ilength;i++) {
+   char idx[16];
+   mprItoa(i, idx, sizeof(idx));
+   args[i] = mprGetProperty(v, idx, NULL);
+   }
+   
+   ret = ejs_sprintf(eid, length, args);
+   talloc_free(args);
+   return ret;
+}
+
+/*
   setup C functions that be called from ejs
 */
 void smb_setup_ejs_string(void)
@@ -281,4 +316,5 @@
ejsDefineStringCFunction(-1, split, ejs_split, NULL, 
MPR_VAR_SCRIPT_HANDLE);
ejsDefineCFunction(-1, join, ejs_join, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineCFunction(-1, sprintf, ejs_sprintf, NULL, 
MPR_VAR_SCRIPT_HANDLE);
+   ejsDefineCFunction(-1, vsprintf, ejs_vsprintf, NULL, 
MPR_VAR_SCRIPT_HANDLE);
 }

Modified: branches/SAMBA_4_0/source/scripting/libjs/base.js
===
--- branches/SAMBA_4_0/source/scripting/libjs/base.js   2005-07-12 06:39:36 UTC 
(rev 8354)
+++ branches/SAMBA_4_0/source/scripting/libjs/base.js   2005-07-12 06:57:25 UTC 
(rev 8355)
@@ -10,6 +10,14 @@
 HAVE_BASE_JS=1
 
 /*
+  an essential function!
+*/
+function printf()
+{
+   print(vsprintf(arguments));
+}
+
+/*
   helper function to setup a rpc io object, ready for input
 */
 function irpcObj()

Modified: branches/SAMBA_4_0/source/setup/provision
===
--- branches/SAMBA_4_0/source/setup/provision   2005-07-12 06:39:36 UTC (rev 
8354)
+++ branches/SAMBA_4_0/source/setup/provision   2005-07-12 06:57:25 UTC (rev 
8355)
@@ -26,7 +26,6 @@
'nogroup=s',
'wheel=s',
'users=s',
-   'outputdir=s',
'quiet');
 if (ok == false) {
println(Failed to parse options:  + options.ERROR);
@@ -200,7 +199,6 @@
  --host-ip IPADDRESS   set ipaddress
  --host-guid   GUIDset hostguid (otherwise random)
  --invocationidGUIDset invocationid (otherwise random)
- --outputdir   OUTPUTDIR   set output directory
  --adminpass   PASSWORDchoose admin password (otherwise random)
  --krbtgtpass  PASSWORDchoose krbtgt password (otherwise random)
  --machinepass PASSWORDchoose machine password (otherwise random)

Modified: branches/SAMBA_4_0/testprogs/ejs/bugs.js
===
--- branches/SAMBA_4_0/testprogs/ejs/bugs.js2005-07-12 06:39:36 UTC (rev 
8354)
+++ branches/SAMBA_4_0/testprogs/ejs/bugs.js2005-07-12 06:57:25 UTC (rev 
8355)
@@ -8,6 +8,7 @@
 /
 demo a bug in constructing arrays
 fix at http://build.samba.org/build.pl?function=diff;tree=samba4;revision=7124
+status: FIXED
 */
 function arraybug() {
 var a;
@@ -38,6 +39,7 @@
 /
 demo a bug in variable arguments
 fix at http://build.samba.org/build.pl?function=diff;tree=samba4;revision=7085
+status: FIXED
 */
 function argsbug() {
 println(we should have been called with 3 arguments);
@@ -51,6 +53,7 @@
 /
 demo a bug in constructing objects
 no fix available yet
+status: SUBMITTED
 

svn commit: samba r8356 - in branches/SAMBA_4_0/source/build/m4: .

2005-07-12 Thread lha
Author: lha
Date: 2005-07-12 07:12:46 + (Tue, 12 Jul 2005)
New Revision: 8356

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

Log:
avoid warning from AC_CHECK_HEADER that file is present but cannot be compiled
for sys/mount.h

Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4   2005-07-12 06:57:25 UTC 
(rev 8355)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4   2005-07-12 07:12:46 UTC 
(rev 8356)
@@ -59,7 +59,7 @@
 AC_CHECK_HEADERS(compat.h)
 AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h 
sys/ipc.h sys/mode.h)
 AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h 
strings.h stdlib.h sys/socket.h)
-AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h 
termio.h)
+AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
 AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h 
sys/statvfs.h stdarg.h sys/sockio.h)
 AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
 AC_CHECK_HEADERS(sys/syslog.h syslog.h)
@@ -69,6 +69,12 @@
 AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
 AC_CHECK_HEADERS(sys/acl.h)
 
+AC_CHECK_HEADERS(sys/mount.h, , , [AC_INCLUDES_DEFAULT
+#ifdef HAVE_SYS_PARAM_H
+#include sys/param.h
+#endif])
+
+
 AC_TYPE_SIGNAL
 AC_TYPE_UID_T
 AC_TYPE_MODE_T



svn commit: samba r8357 - in branches/SAMBA_4_0/source/scripting/ejs: .

2005-07-12 Thread tpot
Author: tpot
Date: 2005-07-12 07:15:22 + (Tue, 12 Jul 2005)
New Revision: 8357

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

Log:
Call lp_load() so we can access the various lp_functions().

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbscript.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbscript.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbscript.c 2005-07-12 07:12:46 UTC 
(rev 8356)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbscript.c 2005-07-12 07:15:22 UTC 
(rev 8357)
@@ -48,6 +48,8 @@
smbscript_init_subsystems;
mprSetCtx(mem_ctx);
 
+   lp_load(dyn_CONFIGFILE);
+
if (argc  2) {
fprintf(stderr, You must supply a script name\n);
exit(1);



svn commit: samba r8358 - in branches/SAMBA_4_0/source/scripting/ejs: .

2005-07-12 Thread tpot
Author: tpot
Date: 2005-07-12 07:17:04 + (Tue, 12 Jul 2005)
New Revision: 8358

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

Log:
Return an error message if js include path not set instead of silently
failing.

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c  2005-07-12 07:15:22 UTC 
(rev 8357)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c  2005-07-12 07:17:04 UTC 
(rev 8358)
@@ -74,6 +74,7 @@
const char **js_include = lp_js_include();
 
if (js_include == NULL || js_include[0] == NULL) {
+   ejsSetErrorMsg(eid, js include path not set);
return -1;
}
 



svn commit: samba r8359 - in branches/SAMBA_4_0/source/build/m4: .

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 08:03:46 + (Tue, 12 Jul 2005)
New Revision: 8359

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

Log:
fix a shell warning

metze
Modified:
   branches/SAMBA_4_0/source/build/m4/check_path.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_path.m4
===
--- branches/SAMBA_4_0/source/build/m4/check_path.m42005-07-12 07:17:04 UTC 
(rev 8358)
+++ branches/SAMBA_4_0/source/build/m4/check_path.m42005-07-12 08:03:46 UTC 
(rev 8359)
@@ -159,7 +159,7 @@
 debug=no
 AC_ARG_ENABLE(debug, 
 [  --enable-debug  Turn on compiler debugging information 
(default=no)],
-[if test x$enable_debug = xyes -a test x$enable_developer != xyes; then
+[if test x$enable_debug = xyes -a x$enable_developer != xyes; then
 debug=yes
CFLAGS=${CFLAGS} -g
 fi])



svn commit: samba r8360 - branches/SAMBA_3_0/source/include trunk/source/include

2005-07-12 Thread vlendec
Author: vlendec
Date: 2005-07-12 08:05:15 + (Tue, 12 Jul 2005)
New Revision: 8360

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

Log:
Some ioctl constants, found by Bj?\195?\182rn Jacke [EMAIL PROTECTED] with
msbackupfilemon.

Thanks,

Volker
Modified:
   branches/SAMBA_3_0/source/include/ntioctl.h
   trunk/source/include/ntioctl.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/ntioctl.h
===
--- branches/SAMBA_3_0/source/include/ntioctl.h 2005-07-12 08:03:46 UTC (rev 
8359)
+++ branches/SAMBA_3_0/source/include/ntioctl.h 2005-07-12 08:05:15 UTC (rev 
8360)
@@ -42,6 +42,8 @@
 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008C
 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
+#define FSCTL_SET_OBJECT_ID  0x00090098
+#define FSCTL_GET_OBJECT_ID  0x0009009C
 #define FSCTL_SET_REPARSE_POINT  0x000900A4
 #define FSCTL_GET_REPARSE_POINT  0x000900A8
 #define FSCTL_DELETE_REPARSE_POINT   0x000900AC
@@ -53,6 +55,7 @@
 #define FSCTL_WRITE_RAW_ENCRYPTED0x000900DF
 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
 #define FSCTL_SIS_COPYFILE   0x00090100
+#define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
 #define FSCTL_SIS_LINK_FILES 0x0009C104
 
 #define FSCTL_GET_SHADOW_COPY_DATA   0x00144064   /* KJC -- Shadow Copy 
information */
@@ -63,7 +66,6 @@
 #define FSCTL_GET_NTFS_FILE_RECORD
 #define FSCTL_ALLOW_EXTENDED_DASD_IO
 #define FSCTL_RECALL_FILE
-#define FSCTL_QUERY_ALLOCATED_RANGES
 
 #endif
 

Modified: trunk/source/include/ntioctl.h
===
--- trunk/source/include/ntioctl.h  2005-07-12 08:03:46 UTC (rev 8359)
+++ trunk/source/include/ntioctl.h  2005-07-12 08:05:15 UTC (rev 8360)
@@ -42,6 +42,8 @@
 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008C
 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
+#define FSCTL_SET_OBJECT_ID  0x00090098
+#define FSCTL_GET_OBJECT_ID  0x0009009C
 #define FSCTL_SET_REPARSE_POINT  0x000900A4
 #define FSCTL_GET_REPARSE_POINT  0x000900A8
 #define FSCTL_DELETE_REPARSE_POINT   0x000900AC
@@ -53,6 +55,7 @@
 #define FSCTL_WRITE_RAW_ENCRYPTED0x000900DF
 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
 #define FSCTL_SIS_COPYFILE   0x00090100
+#define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
 #define FSCTL_SIS_LINK_FILES 0x0009C104
 
 #define FSCTL_GET_SHADOW_COPY_DATA   0x00144064   /* KJC -- Shadow Copy 
information */
@@ -63,7 +66,6 @@
 #define FSCTL_GET_NTFS_FILE_RECORD
 #define FSCTL_ALLOW_EXTENDED_DASD_IO
 #define FSCTL_RECALL_FILE
-#define FSCTL_QUERY_ALLOCATED_RANGES
 
 #endif
 



svn commit: samba r8361 - in branches/SAMBA_4_0/source/web_server: .

2005-07-12 Thread lha
Author: lha
Date: 2005-07-12 08:17:34 + (Tue, 12 Jul 2005)
New Revision: 8361

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

Log:
ctype is* macros needs unsigned arguments

Modified:
   branches/SAMBA_4_0/source/web_server/http.c


Changeset:
Modified: branches/SAMBA_4_0/source/web_server/http.c
===
--- branches/SAMBA_4_0/source/web_server/http.c 2005-07-12 08:05:15 UTC (rev 
8360)
+++ branches/SAMBA_4_0/source/web_server/http.c 2005-07-12 08:17:34 UTC (rev 
8361)
@@ -122,7 +122,7 @@
if (url[0] != '/') return NULL;
 
for (i=0;url[i];i++) {
-   if ((!isalnum(url[i])  !strchr(./_, url[i])) ||
+   if ((!isalnum((unsigned char)url[i])  !strchr(./_, url[i])) 
||
(url[i] == '.'  strchr(/., url[i+1]))) {
return NULL;
}



svn commit: samba r8362 - in branches/SAMBA_4_0/source: .

2005-07-12 Thread lha
Author: lha
Date: 2005-07-12 08:21:09 + (Tue, 12 Jul 2005)
New Revision: 8362

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

Log:
change AC_INIT to the new version, improves failure reporting from autoconf

configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING: ## -- ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING: ## -- ##



configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING: ##  ##
configure: WARNING: ## Report this to [EMAIL PROTECTED] ##
configure: WARNING: ##  ##

Modified:
   branches/SAMBA_4_0/source/configure.in


Changeset:
Modified: branches/SAMBA_4_0/source/configure.in
===
--- branches/SAMBA_4_0/source/configure.in  2005-07-12 08:17:34 UTC (rev 
8361)
+++ branches/SAMBA_4_0/source/configure.in  2005-07-12 08:21:09 UTC (rev 
8362)
@@ -4,7 +4,8 @@
 dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
 dnl AC_PREREQ(2.53)
 
-AC_INIT(include/includes.h)
+AC_INIT([samba4],[4.0pre],[EMAIL PROTECTED])
+AC_CONFIG_SRCDIR([include/includes.h])
 AC_CONFIG_HEADER(include/config.h)
 
 sinclude(build/m4/env.m4)



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

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 09:02:27 + (Tue, 12 Jul 2005)
New Revision: 8363

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

Log:
- we need to correct the realm for the krbtgt/NETBIOSDOMAINREALM
  into krbtgt/DNS.DOMAIN.REALM too
  with this a windows client asks for the correct ticket when you try to login
  (but it's still not working correct, as some how we mess up the dns host name 
of the
   client and it asks for the wrong service principal)

- fix some compiler wranings
- fix some debug messages

metze
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-07-12 08:21:09 UTC (rev 
8362)
+++ branches/SAMBA_4_0/source/kdc/hdb-ldb.c 2005-07-12 09:02:27 UTC (rev 
8363)
@@ -321,8 +321,8 @@
const char *user_principal_name = ldb_msg_find_string(msg, 
userPrincipalName, NULL);
struct ldb_message_element *objectclasses;
struct ldb_val computer_val;
-   computer_val.data = computer;
-   computer_val.length = strlen(computer_val.data);
+   computer_val.data = discard_const_p(uint8_t,computer);
+   computer_val.length = strlen((const char *)computer_val.data);

objectclasses = ldb_msg_find_element(msg, objectClass);
 
@@ -646,7 +646,7 @@
for (i = 0; i  spnmappings-num_values; i++) {
char *mapping, *p, *str;
mapping = talloc_strdup(mem_ctx, 
-   spnmappings-values[i].data);
+   (const char 
*)spnmappings-values[i].data);
if (!mapping) {
krb5_warnx(context, LDB_lookup_spn_alias: ldb_search: 
dn: %s did not have an sPNMapping, service_dn);
krb5_set_error_string(context, LDB_lookup_spn_alias: 
ldb_search: dn: %s did not have an sPNMapping, service_dn);
@@ -719,6 +719,7 @@
 {
struct ldb_message **msg = NULL;
struct ldb_message **realm_msg = NULL;
+   struct ldb_message **realm_fixed_msg = NULL;
enum hdb_ldb_ent_type ldb_ent_type;
krb5_error_code ret;
 
@@ -732,7 +733,7 @@
}
 
realm = krb5_principal_get_realm(context, principal);
-   
+
ret = LDB_lookup_realm(context, (struct ldb_context *)db-hdb_db, 
   mem_ctx, realm, realm_msg);
if (ret != 0) {
@@ -752,7 +753,23 @@
if (principal-name.name_string.len == 2
 (strcmp(principal-name.name_string.val[0], 
KRB5_TGS_NAME) == 0)
 (LDB_lookup_realm(context, (struct ldb_context 
*)db-hdb_db,
-mem_ctx, 
principal-name.name_string.val[1], NULL) == 0)) {
+mem_ctx, 
principal-name.name_string.val[1], realm_fixed_msg) == 0)) {
+   const char *dnsdomain = 
ldb_msg_find_string(realm_fixed_msg[0], dnsDomain, NULL);
+   char *realm_fixed = strupper_talloc(mem_ctx, dnsdomain);
+   if (!realm_fixed) {
+   krb5_set_error_string(context, 
strupper_talloc: out of memory);
+   talloc_free(mem_ctx);
+   return ENOMEM;
+   }
+
+   free(principal-name.name_string.val[1]);
+   principal-name.name_string.val[1] = 
strdup(realm_fixed);
+   talloc_free(realm_fixed);
+   if (!principal-name.name_string.val[1]) {
+   krb5_set_error_string(context, LDB_fetch: 
strdup() failed!);
+   talloc_free(mem_ctx);
+   return ENOMEM;
+   }
ldb_ent_type = HDB_LDB_ENT_TYPE_KRBTGT;
} else {
ldb_ent_type = HDB_LDB_ENT_TYPE_SERVER;
@@ -944,7 +961,7 @@
 
if (ret != 0) {
talloc_free(priv);
-   krb5_warnx(context, LDB_fetch: could not find realm\n);
+   krb5_warnx(context, LDB_firstkey: could not find realm\n);
return HDB_ERR_NOENTRY;
}
 
@@ -952,7 +969,7 @@
 
priv-realm_msgs = talloc_steal(priv, realm_msgs);
 
-   krb5_warnx(context, LDB_lookup_principal: realm ok\n);
+   krb5_warnx(context, LDB_firstkey: realm ok\n);
 
priv-count = ldb_search(ldb_ctx, realm_dn,
 LDB_SCOPE_SUBTREE, (objectClass=user),



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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 09:02:58 + (Tue, 12 Jul 2005)
New Revision: 8364

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

Log:
fixed a valgrind bug spotted by simo

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c
===
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c   2005-07-12 
09:02:27 UTC (rev 8363)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_attributes.c   2005-07-12 
09:02:58 UTC (rev 8364)
@@ -278,7 +278,7 @@
talloc_free(c-name);
talloc_free(c-subclasses);
if (ldb-schema.num_classes-(i+1)  0) {
-   memmove(c, c+1, sizeof(*c) * ldb-schema.num_classes-(i+1));
+   memmove(c, c+1, sizeof(*c) * (ldb-schema.num_classes-(i+1)));
}
ldb-schema.num_classes--;
if (ldb-schema.num_classes == 0) {



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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 09:09:42 + (Tue, 12 Jul 2005)
New Revision: 8365

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

Log:
fixed a problem on netbsd


Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 09:02:58 UTC 
(rev 8364)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-07-12 09:09:42 UTC 
(rev 8365)
@@ -15,8 +15,11 @@
exit
 fi
 
+
 PREFIX=$1
+PREFIX=`echo $PREFIX | sed s+//+/+`
 export PREFIX
+
 mkdir -p $PREFIX || exit $?
 OLD_PWD=`pwd`
 cd $PREFIX || exit $?



svn commit: samba r8366 - branches/SAMBA_3_0/source/modules trunk/source/modules

2005-07-12 Thread vlendec
Author: vlendec
Date: 2005-07-12 09:18:50 + (Tue, 12 Jul 2005)
New Revision: 8366

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

Log:
Root-level files don't have a slash, but acls need to be settable on
them. Thanks to Brent Trotter for reminding me to commit this :-)

Volker
Modified:
   branches/SAMBA_3_0/source/modules/vfs_afsacl.c
   trunk/source/modules/vfs_afsacl.c


Changeset:
Modified: branches/SAMBA_3_0/source/modules/vfs_afsacl.c
===
--- branches/SAMBA_3_0/source/modules/vfs_afsacl.c  2005-07-12 09:09:42 UTC 
(rev 8365)
+++ branches/SAMBA_3_0/source/modules/vfs_afsacl.c  2005-07-12 09:18:50 UTC 
(rev 8366)
@@ -891,12 +891,14 @@
pstr_sprintf(name, fsp-fsp_name);
 
if (!fsp-is_directory) {
+   /* We need to get the name of the directory containing the
+* file, this is where the AFS acls live */
char *p = strrchr(name, '/');
-   if (p == NULL) {
-   DEBUG(3, (No / in file string\n));
-   return False;
+   if (p != NULL) {
+   *p = '\0';
+   } else {
+   pstrcpy(name, .);
}
-   *p = '\0';
}
 
if (!afs_get_afs_acl(name, old_afs_acl)) {

Modified: trunk/source/modules/vfs_afsacl.c
===
--- trunk/source/modules/vfs_afsacl.c   2005-07-12 09:09:42 UTC (rev 8365)
+++ trunk/source/modules/vfs_afsacl.c   2005-07-12 09:18:50 UTC (rev 8366)
@@ -891,12 +891,14 @@
pstr_sprintf(name, fsp-fsp_name);
 
if (!fsp-is_directory) {
+   /* We need to get the name of the directory containing the
+* file, this is where the AFS acls live */
char *p = strrchr(name, '/');
-   if (p == NULL) {
-   DEBUG(3, (No / in file string\n));
-   return False;
+   if (p != NULL) {
+   *p = '\0';
+   } else {
+   pstrcpy(name, .);
}
-   *p = '\0';
}
 
if (!afs_get_afs_acl(name, old_afs_acl)) {



svn commit: samba r8368 - in branches/SAMBA_4_0/source: cldap_server librpc/idl torture/ldap

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 09:40:34 + (Tue, 12 Jul 2005)
New Revision: 8368

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

Log:
the type filed depends on the user being present or not

call ndr_print for each call

metze
Modified:
   branches/SAMBA_4_0/source/cldap_server/netlogon.c
   branches/SAMBA_4_0/source/librpc/idl/nbt.idl
   branches/SAMBA_4_0/source/torture/ldap/cldap.c


Changeset:
Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c
===
--- branches/SAMBA_4_0/source/cldap_server/netlogon.c   2005-07-12 09:31:41 UTC 
(rev 8367)
+++ branches/SAMBA_4_0/source/cldap_server/netlogon.c   2005-07-12 09:40:34 UTC 
(rev 8368)
@@ -108,6 +108,7 @@
switch (version  0xF) {
case 0:
case 1:
+   netlogon-logon1.type= (user?19+2:19);
netlogon-logon1.pdc_name= pdc_name;
netlogon-logon1.user_name   = user;
netlogon-logon1.domain_name = flatname;
@@ -117,6 +118,7 @@
break;
case 2:
case 3:
+   netlogon-logon3.type = (user?19+2:19);
netlogon-logon3.pdc_name = pdc_name;
netlogon-logon3.user_name= user;
netlogon-logon3.domain_name  = flatname;
@@ -133,6 +135,7 @@
case 5:
case 6:
case 7:
+   netlogon-logon5.type = (user?23+2:23);
netlogon-logon5.server_type  = server_type;
netlogon-logon5.domain_uuid  = domain_uuid;
netlogon-logon5.forest   = realm;
@@ -147,6 +150,7 @@
netlogon-logon5.lm20_token   = 0x;
break;
default:
+   netlogon-logon13.type = (user?23+2:23);
netlogon-logon13.server_type  = server_type;
netlogon-logon13.domain_uuid  = domain_uuid;
netlogon-logon13.forest   = realm;
@@ -181,7 +185,7 @@
int i;
const char *domain = NULL;
const char *host = NULL;
-   const char *user = ;
+   const char *user = NULL;
const char *domain_guid = NULL;
const char *domain_sid = NULL;
int acct_control = -1;

Modified: branches/SAMBA_4_0/source/librpc/idl/nbt.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/nbt.idl2005-07-12 09:31:41 UTC 
(rev 8367)
+++ branches/SAMBA_4_0/source/librpc/idl/nbt.idl2005-07-12 09:40:34 UTC 
(rev 8368)
@@ -454,7 +454,7 @@
   quite identical to, the netlogon structures above */
 
typedef struct {
-   [value(21)] uint16   type;
+   uint16   type;
nstring  pdc_name;
nstring  user_name;
nstring  domain_name;
@@ -464,7 +464,7 @@
} nbt_cldap_netlogon_1;
 
typedef struct {
-   [value(21)] uint16   type;
+   uint16   type;
nstring  pdc_name;
nstring  user_name;
nstring  domain_name;
@@ -481,7 +481,7 @@
} nbt_cldap_netlogon_3;
 
typedef struct {
-   [value(25)] uint32   type;
+   uint32   type;
nbt_server_type  server_type;
GUID domain_uuid;
nbt_string   forest;
@@ -498,7 +498,7 @@
} nbt_cldap_netlogon_5;
 
typedef struct {
-   [value(25)] uint32   type;
+   uint32   type;
nbt_server_type  server_type;
GUID domain_uuid;
nbt_string   forest;

Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c
===
--- branches/SAMBA_4_0/source/torture/ldap/cldap.c  2005-07-12 09:31:41 UTC 
(rev 8367)
+++ branches/SAMBA_4_0/source/torture/ldap/cldap.c  2005-07-12 09:40:34 UTC 
(rev 8368)
@@ -32,9 +32,14 @@
   __location__, nt_errstr(status), nt_errstr(correct)); \
ret = False; \
goto done; \
-   }} while (0)
+   } \
+   if (DEBUGLVL(10)) { \
+   NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, \
+ search.in.version  0xF, \
+ search.out.netlogon); \
+   } \
+} while (0)
 
-
 /*
   test netlogon operations
 */
@@ -72,11 +77,6 @@
printf(Trying netlogon level %d\n, i);
status = cldap_netlogon(cldap, mem_ctx, search);
CHECK_STATUS(status, NT_STATUS_OK);
-   if (DEBUGLVL(10)) {
-   NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, 
-  

svn commit: samba r8369 - in branches/SAMBA_4_0/source: .

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 10:38:45 + (Tue, 12 Jul 2005)
New Revision: 8369

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

Log:
update the configure script I use
Modified:
   branches/SAMBA_4_0/source/configure.tridge.opt


Changeset:
Modified: branches/SAMBA_4_0/source/configure.tridge.opt
===
--- branches/SAMBA_4_0/source/configure.tridge.opt  2005-07-12 09:40:34 UTC 
(rev 8368)
+++ branches/SAMBA_4_0/source/configure.tridge.opt  2005-07-12 10:38:45 UTC 
(rev 8369)
@@ -1,3 +1,2 @@
 #!/bin/sh
-export CFLAGS=-O2 -Wall
-`dirname $0`/configure $* --prefix=/home/tridge/samba/samba4/prefix 
+./configure $* -C --prefix=/home/tridge/samba/samba4/prefix --enable-developer 
--enable-debug --enable-socket-wrapper 



svn commit: samba r8370 - in branches/SAMBA_4_0/source/rpc_server/samr: .

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 10:59:12 + (Tue, 12 Jul 2005)
New Revision: 8370

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

Log:
remove the '$' from in the cn: attribute for computer and dc accounts

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
===
--- branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2005-07-12 
10:38:45 UTC (rev 8369)
+++ branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c 2005-07-12 
10:59:12 UTC (rev 8370)
@@ -660,7 +660,9 @@
const char *account_name;
struct dcesrv_handle *u_handle;
int ret;
-   const char *container, *class=NULL;
+   const char *container, *obj_class=NULL;
+   char *cn_name;
+   int cn_name_len;
 
ZERO_STRUCTP(r-out.user_handle);
*r-out.access_granted = 0;
@@ -689,34 +691,46 @@
return NT_STATUS_NO_MEMORY;
}
 
+   cn_name   = talloc_strdup(mem_ctx, account_name);
+   NT_STATUS_HAVE_NO_MEMORY(cn_name);
+   cn_name_len = strlen(cn_name);
+
/* This must be one of these values *only* */
if (r-in.acct_flags == ACB_NORMAL) {
container = Users;
-   class = user;
+   obj_class = user;
 
} else if (r-in.acct_flags == ACB_WSTRUST) {
+   if (cn_name[cn_name_len - 1] != '$') {
+   return NT_STATUS_FOOBAR;
+   }
+   cn_name[cn_name_len - 1] = '\0';
container = Computers;
-   class = computer;
+   obj_class = computer;
 
} else if (r-in.acct_flags == ACB_SVRTRUST) {
+   if (cn_name[cn_name_len - 1] != '$') {
+   return NT_STATUS_FOOBAR;
+   }
+   cn_name[cn_name_len - 1] = '\0';
container = Domain Controllers;
-   class = computer;
+   obj_class = computer;
 
} else if (r-in.acct_flags == ACB_DOMTRUST) {
container = Users;
-   class = computer;
+   obj_class = user;
 
} else {
return NT_STATUS_INVALID_PARAMETER;
}
 
/* add core elements to the ldb_message for the user */
-   msg-dn = talloc_asprintf(mem_ctx, CN=%s,CN=%s,%s, account_name, 
container, d_state-domain_dn);
+   msg-dn = talloc_asprintf(mem_ctx, CN=%s,CN=%s,%s, cn_name, 
container, d_state-domain_dn);
if (!msg-dn) {
return NT_STATUS_NO_MEMORY; 
}
samdb_msg_add_string(d_state-sam_ctx, mem_ctx, msg, sAMAccountName, 
account_name);
-   samdb_msg_add_string(d_state-sam_ctx, mem_ctx, msg, objectClass, 
class);
+   samdb_msg_add_string(d_state-sam_ctx, mem_ctx, msg, objectClass, 
obj_class);
/* create the user */
ret = samdb_add(d_state-sam_ctx, mem_ctx, msg);
if (ret != 0) {



svn commit: samba r8371 - in branches/SAMBA_4_0/source/rpc_server/drsuapi: .

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 11:45:29 + (Tue, 12 Jul 2005)
New Revision: 8371

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

Log:
the objectGUID is now stored in binary...

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/drsuapi/drsuapi_cracknames.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/drsuapi/drsuapi_cracknames.c
===
--- branches/SAMBA_4_0/source/rpc_server/drsuapi/drsuapi_cracknames.c   
2005-07-12 10:59:12 UTC (rev 8370)
+++ branches/SAMBA_4_0/source/rpc_server/drsuapi/drsuapi_cracknames.c   
2005-07-12 11:45:29 UTC (rev 8371)
@@ -212,12 +212,11 @@
return WERR_OK;
}
case DRSUAPI_DS_NAME_FORMAT_GUID: {
-   const char *result;
+   struct GUID guid;
 
-   result = samdb_result_string(result_res[0], 
objectGUID, NULL);
-   WERR_TALLOC_CHECK(result);
-   
-   info1-result_name  = talloc_asprintf(mem_ctx, 
{%s}, result);
+   guid = samdb_result_guid(result_res[0], objectGUID);
+
+   info1-result_name  = GUID_string2(mem_ctx, guid);
WERR_TALLOC_CHECK(info1-result_name);
 
info1-status   = DRSUAPI_DS_NAME_STATUS_OK;



svn commit: samba r8372 - in branches/SAMBA_4_0: source/scripting/ejs source/scripting/libjs source/setup swat/esptest swat/scripting

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 11:46:34 + (Tue, 12 Jul 2005)
New Revision: 8372

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

Log:
- split out provisioning logic into a separate ejs library

- added a provisioning web page


Added:
   branches/SAMBA_4_0/source/scripting/libjs/provision.js
   branches/SAMBA_4_0/swat/esptest/provision.esp
Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_string.c
   branches/SAMBA_4_0/source/setup/provision
   branches/SAMBA_4_0/swat/esptest/menu.js
   branches/SAMBA_4_0/swat/scripting/common.js


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


svn commit: samba r8373 - in branches/SAMBA_4_0/source: lib/ldb/common lib/ldb/include lib/ldb/ldb_tdb lib/ldb/tests lib/ldb/tests/schema-tests setup

2005-07-12 Thread idra
Author: idra
Date: 2005-07-12 12:04:54 + (Tue, 12 Jul 2005)
New Revision: 8373

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

Log:

New wildcard matching code.
This code applies correct ldap standard wildcard matching code
removes WILDCARD matching from tdb @ATTRIBUTES, that's now handled independently
adds some more tests for wildcard matching
fixes dn comparison code in ldb_match


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/attrib_handlers.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_match.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
   branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_search.c
   branches/SAMBA_4_0/source/lib/ldb/tests/schema-tests/schema.ldif
   branches/SAMBA_4_0/source/lib/ldb/tests/test-attribs.ldif
   branches/SAMBA_4_0/source/lib/ldb/tests/test-generic.sh
   branches/SAMBA_4_0/source/lib/ldb/tests/test-index.ldif
   branches/SAMBA_4_0/source/lib/ldb/tests/test-tdb-features.sh
   branches/SAMBA_4_0/source/setup/provision.ldif


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


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

2005-07-12 Thread tridge
Author: tridge
Date: 2005-07-12 12:12:03 + (Tue, 12 Jul 2005)
New Revision: 8374

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

Log:
avoid running flex and bison unless needed

this should stop the files changes in svn for other developers

Modified:
   branches/SAMBA_4_0/source/heimdal_build/build_external.sh


Changeset:
Modified: branches/SAMBA_4_0/source/heimdal_build/build_external.sh
===
--- branches/SAMBA_4_0/source/heimdal_build/build_external.sh   2005-07-12 
12:04:54 UTC (rev 8373)
+++ branches/SAMBA_4_0/source/heimdal_build/build_external.sh   2005-07-12 
12:12:03 UTC (rev 8374)
@@ -41,10 +41,15 @@
 dir=`dirname $f`
 file=`basename $f`
 base=`basename $f .l`
+if [ -r $dir/$base.c ]; then
+   if [ x`find $f -newer $dir/$base.c -print` != x$f ]; then
+   return;
+   fi
+fi
 echo Building $f
 if cd $dir  $FLEX $file; then
-   sed '/^#/ s|$base.yy\.c|$base.c|' $base.yy.c  $base.c
-   rm -f $base.yy.c
+   sed '/^#/ s|$base.yy\.c|$base.c|' $base.yy.c  $base.c
+   rm -f $base.yy.c
 fi
 cd $TOP || exit 1
 }
@@ -54,6 +59,11 @@
 dir=`dirname $f`
 file=`basename $f`
 base=`basename $f .y`
+if [ -r $dir/$base.c ]; then
+   if [ x`find $f -newer $dir/$base.c -print` != x$f ]; then
+   return;
+   fi
+fi
 echo Building $f
 if cd $dir  $BISON -y -d $file; then
sed -e /^#/!b -e s|y\.tab\.h|$base.h| y.tab.h  $base.h



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

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 12:25:50 + (Tue, 12 Jul 2005)
New Revision: 8375

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

Log:
- move from netr_StringLarge to lsa_StringLarge

- we need to use lsa_StringLarge in lsa_DnsDomainInfo, to make windows clients 
happy

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


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2005-07-12 12:12:03 UTC 
(rev 8374)
+++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2005-07-12 12:25:50 UTC 
(rev 8375)
@@ -20,6 +20,12 @@
} lsa_String;
 
typedef [public] struct {
+   [value(2*strlen_m(string))] uint16 length;
+   [value(2*(strlen_m(string)+1))] uint16 size;
+   [flag(STR_SIZE4|STR_LEN4|STR_NOTERM|STR_LARGE_SIZE)] string 
*string;
+   } lsa_StringLarge;
+
+   typedef [public] struct {
uint32 count;
[size_is(count)] lsa_String *names;
} lsa_Strings;
@@ -180,9 +186,15 @@
} lsa_AuditFullQueryInfo;
 
typedef struct {
-   lsa_String name;
-   lsa_String dns_domain;
-   lsa_String dns_forest;
+   /* it's important that we use the lsa_StringLarge here,
+* because otherwise windows clients result with such dns 
hostnames
+* e.g. w2k3-client.samba4.samba.orgsamba4.samba.org
+* where it should be
+*  w2k3-client.samba4.samba.org
+*/
+   lsa_StringLarge name;
+   lsa_StringLarge dns_domain;
+   lsa_StringLarge dns_forest;
GUID domain_guid;
dom_sid2 *sid;
} lsa_DnsDomainInfo;

Modified: branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-07-12 12:12:03 UTC 
(rev 8374)
+++ branches/SAMBA_4_0/source/librpc/idl/netlogon.idl   2005-07-12 12:25:50 UTC 
(rev 8375)
@@ -19,12 +19,6 @@
 {
declare bitmap samr_AcctFlags;
 
-   typedef struct {
-   [value(2*strlen_m(string))] uint16 length;
-   [value(2*(strlen_m(string)+1))] uint16 size;
-   [flag(STR_NOTERM|STR_SIZE4|STR_LEN4|STR_LARGE_SIZE)] string 
*string;
-   } netr_StringLarge;
-
/*/
/* Function 0x00 */
 
@@ -164,8 +158,8 @@
samr_RidWithAttributeArray groups;
uint32 user_flags;
netr_UserSessionKey key;
-   netr_StringLarge logon_server;
-   netr_StringLarge domain;
+   lsa_StringLarge logon_server;
+   lsa_StringLarge domain;
dom_sid2 *domain_sid;
netr_LMSessionKey LMSessKey;
samr_AcctFlags acct_flags;




svn commit: samba r8376 - in branches/SAMBA_4_0/source: .

2005-07-12 Thread metze
Author: metze
Date: 2005-07-12 13:05:50 + (Tue, 12 Jul 2005)
New Revision: 8376

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

Log:
remove version info from configure.in

metze
Modified:
   branches/SAMBA_4_0/source/configure.in


Changeset:
Modified: branches/SAMBA_4_0/source/configure.in
===
--- branches/SAMBA_4_0/source/configure.in  2005-07-12 12:25:50 UTC (rev 
8375)
+++ branches/SAMBA_4_0/source/configure.in  2005-07-12 13:05:50 UTC (rev 
8376)
@@ -4,7 +4,7 @@
 dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
 dnl AC_PREREQ(2.53)
 
-AC_INIT([samba4],[4.0pre],[EMAIL PROTECTED])
+AC_INIT([samba],[],[EMAIL PROTECTED])
 AC_CONFIG_SRCDIR([include/includes.h])
 AC_CONFIG_HEADER(include/config.h)
 



svn commit: samba r8377 - in branches/SAMBA_4_0/source/lib/ldb/tests: .

2005-07-12 Thread idra
Author: idra
Date: 2005-07-12 13:37:11 + (Tue, 12 Jul 2005)
New Revision: 8377

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

Log:

forgot an ldif test


Added:
   branches/SAMBA_4_0/source/lib/ldb/tests/test-wildcard.ldif


Changeset:
Added: branches/SAMBA_4_0/source/lib/ldb/tests/test-wildcard.ldif
===
--- branches/SAMBA_4_0/source/lib/ldb/tests/test-wildcard.ldif  2005-07-12 
13:05:50 UTC (rev 8376)
+++ branches/SAMBA_4_0/source/lib/ldb/tests/test-wildcard.ldif  2005-07-12 
13:37:11 UTC (rev 8377)
@@ -0,0 +1,4 @@
+dn: cn=test_multi_test_multi_test_multi,o=University of Michigan,c=TEST
+objectclass: person
+cn: test_multi_test_multi_test_multi
+description: test multi wildcards matching



svn commit: samba r8378 - in branches/SAMBA_3_0_RELEASE/source: include modules

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 13:42:21 + (Tue, 12 Jul 2005)
New Revision: 8378

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

Log:
sync up to r8366 in SAMBA_3_0; last changes for 3.0.20pre2
Modified:
   branches/SAMBA_3_0_RELEASE/source/include/ntioctl.h
   branches/SAMBA_3_0_RELEASE/source/modules/vfs_afsacl.c


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/source/include/ntioctl.h
===
--- branches/SAMBA_3_0_RELEASE/source/include/ntioctl.h 2005-07-12 13:37:11 UTC 
(rev 8377)
+++ branches/SAMBA_3_0_RELEASE/source/include/ntioctl.h 2005-07-12 13:42:21 UTC 
(rev 8378)
@@ -42,6 +42,8 @@
 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008C
 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
 #define FSCTL_FILESYS_GET_STATISTICS 0x00090090
+#define FSCTL_SET_OBJECT_ID  0x00090098
+#define FSCTL_GET_OBJECT_ID  0x0009009C
 #define FSCTL_SET_REPARSE_POINT  0x000900A4
 #define FSCTL_GET_REPARSE_POINT  0x000900A8
 #define FSCTL_DELETE_REPARSE_POINT   0x000900AC
@@ -53,6 +55,7 @@
 #define FSCTL_WRITE_RAW_ENCRYPTED0x000900DF
 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
 #define FSCTL_SIS_COPYFILE   0x00090100
+#define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
 #define FSCTL_SIS_LINK_FILES 0x0009C104
 
 #define FSCTL_GET_SHADOW_COPY_DATA   0x00144064   /* KJC -- Shadow Copy 
information */
@@ -63,7 +66,6 @@
 #define FSCTL_GET_NTFS_FILE_RECORD
 #define FSCTL_ALLOW_EXTENDED_DASD_IO
 #define FSCTL_RECALL_FILE
-#define FSCTL_QUERY_ALLOCATED_RANGES
 
 #endif
 

Modified: branches/SAMBA_3_0_RELEASE/source/modules/vfs_afsacl.c
===
--- branches/SAMBA_3_0_RELEASE/source/modules/vfs_afsacl.c  2005-07-12 
13:37:11 UTC (rev 8377)
+++ branches/SAMBA_3_0_RELEASE/source/modules/vfs_afsacl.c  2005-07-12 
13:42:21 UTC (rev 8378)
@@ -891,12 +891,14 @@
pstr_sprintf(name, fsp-fsp_name);
 
if (!fsp-is_directory) {
+   /* We need to get the name of the directory containing the
+* file, this is where the AFS acls live */
char *p = strrchr(name, '/');
-   if (p == NULL) {
-   DEBUG(3, (No / in file string\n));
-   return False;
+   if (p != NULL) {
+   *p = '\0';
+   } else {
+   pstrcpy(name, .);
}
-   *p = '\0';
}
 
if (!afs_get_afs_acl(name, old_afs_acl)) {



Re: svn commit: samba r8353 - in branches/SAMBA_4_0/swat: images scripting

2005-07-12 Thread Deryck Hodge
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 Author: tpot
 Date: 2005-07-12 06:31:17 + (Tue, 12 Jul 2005)
 New Revision: 8353
 
 WebSVN: 
 http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8353
 
 Log:
 Use a PNG instead of a GIF for padding.  Also fixes a file not found
 error as only PNG files were being installed by 'make installswat'.
 
 Added:
branches/SAMBA_4_0/swat/images/linkpad.png
 Removed:
branches/SAMBA_4_0/swat/images/linkpad.gif

Hey, tpot.

The use of linkpad as a gif was a workaround to enable the PNG logo in
IE.  IE doesn't handle full-alpha transparency for PNGs, so I dropped the
logo in via a CSS background rule and used IE's AlphaImageLoader to handle
the transparency.  The linkpad image was just a blank GIF to make the logo
a link.  Background images in CSS can't be linked otherwise.  If linkpad is
a PNG, it won't be transparent in IE.

Cheers,
deryck
- --
Deryck Hodgehttp://www.devurandom.org/
Samba Team  http://www.samba.org/
...it is not the spoon that bends, it is only yourself. --from The Matrix
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC09t84glRK0DaE8gRAgLCAKCCKVI6wa3E4g3Met9AvYPCAI5OVgCgkSEw
5S3R3dMBqZG/dicA2xOy4yY=
=W4b/
-END PGP SIGNATURE-


svn commit: samba r8379 - in branches/SAMBA_3_0_RELEASE/examples: . debugging logon scripts scripts/debugging scripts/debugging/linux scripts/debugging/solaris scripts/perl scripts/printing scripts/pr

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 15:57:27 + (Tue, 12 Jul 2005)
New Revision: 8379

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

Log:
trying to organize the clutter
Added:
   branches/SAMBA_3_0_RELEASE/examples/logon/
   branches/SAMBA_3_0_RELEASE/examples/logon/genlogon/
   branches/SAMBA_3_0_RELEASE/examples/logon/mklogon/
   branches/SAMBA_3_0_RELEASE/examples/logon/ntlogon/
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/linux/
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/linux/backtrace
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/solaris/
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/solaris/README
   branches/SAMBA_3_0_RELEASE/examples/scripts/debugging/solaris/solaris-oops.sh
   branches/SAMBA_3_0_RELEASE/examples/scripts/printing/
   branches/SAMBA_3_0_RELEASE/examples/scripts/printing/cups/
   branches/SAMBA_3_0_RELEASE/examples/scripts/printing/cups/smbaddprinter.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/printing/cups/smbdelprinter.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/shares/
   branches/SAMBA_3_0_RELEASE/examples/scripts/shares/perl/
   
branches/SAMBA_3_0_RELEASE/examples/scripts/shares/perl/modify_samba_config.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/shares/python/
Removed:
   branches/SAMBA_3_0_RELEASE/examples/debugging/README
   branches/SAMBA_3_0_RELEASE/examples/debugging/solaris-oops.sh
   branches/SAMBA_3_0_RELEASE/examples/genlogon/
   branches/SAMBA_3_0_RELEASE/examples/mklogon/
   branches/SAMBA_3_0_RELEASE/examples/ntlogon/
   branches/SAMBA_3_0_RELEASE/examples/scripts/backtrace
   branches/SAMBA_3_0_RELEASE/examples/scripts/perl/modify_samba_config.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/perl/smbaddprinter.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/perl/smbdelprinter.pl
   branches/SAMBA_3_0_RELEASE/examples/scripts/python/


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


svn commit: samba r8380 - in branches/SAMBA_3_0_RELEASE/source: registry sam smbd

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:03:24 + (Tue, 12 Jul 2005)
New Revision: 8380

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

Log:
adding missing files
Added:
   branches/SAMBA_3_0_RELEASE/source/registry/reg_dynamic.c
   branches/SAMBA_3_0_RELEASE/source/sam/idmap_ad.c
   branches/SAMBA_3_0_RELEASE/source/smbd/aio.c


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


svn commit: samba r8381 - in branches/SAMBA_3_0_RELEASE: examples/svr4-startup packaging/sysv

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:03:53 + (Tue, 12 Jul 2005)
New Revision: 8381

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

Log:
moving sysv init script to packaging
Added:
   branches/SAMBA_3_0_RELEASE/packaging/sysv/samba.init
Removed:
   branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server


Changeset:
Deleted: branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server
===
--- branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server   
2005-07-12 16:03:24 UTC (rev 8380)
+++ branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server   
2005-07-12 16:03:53 UTC (rev 8381)
@@ -1,38 +0,0 @@
-#!/bin/sh
-#ident  @(#)samba.server 1.0   96/06/19 TK/* SVr4.0 1.1.13.1*/
-#
-# Please send info on modifications to [EMAIL PROTECTED]
-#
-# This file should have uid root, gid sys and chmod 744
-#
-if [ ! -d /usr/bin ]
-then# /usr not mounted
-exit
-fi
-
-killproc() {# kill the named process(es)
-pid=`/usr/bin/ps -e |
- /usr/bin/grep -w $1 |
- /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
-[ $pid !=  ]  kill $pid
-}
-
-# Start/stop processes required for samba server
-
-case $1 in
-
-'start')
-#
-# Edit these lines to suit your installation (paths, workgroup, host)
-#
-   /opt/samba/bin/smbd -D -s/opt/samba/smb.conf
-   /opt/samba/bin/nmbd -D -l/opt/samba/log -s/opt/samba/smb.conf
-   ;;
-'stop')
-   killproc nmbd
-   killproc smbd
-   ;;
-*)
-   echo Usage: /etc/init.d/samba.server { start | stop }
-   ;;
-esac

Copied: branches/SAMBA_3_0_RELEASE/packaging/sysv/samba.init (from rev 8379, 
branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server)
===
--- branches/SAMBA_3_0_RELEASE/examples/svr4-startup/samba.server   
2005-07-12 15:57:27 UTC (rev 8379)
+++ branches/SAMBA_3_0_RELEASE/packaging/sysv/samba.init2005-07-12 
16:03:53 UTC (rev 8381)
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# Copyright (c) Timo Knuutila [EMAIL PROTECTED] 1996.
+#
+# This file should have uid root, gid sys and chmod 744
+#
+if [ ! -d /usr/bin ]
+then# /usr not mounted
+exit
+fi
+
+killproc() {# kill the named process(es)
+pid=`/usr/bin/ps -e |
+ /usr/bin/grep -w $1 |
+ /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
+[ $pid !=  ]  kill $pid
+}
+
+# Start/stop processes required for samba server
+
+case $1 in
+
+'start')
+#
+# Edit these lines to suit your installation (paths, workgroup, host)
+#
+   /opt/samba/bin/smbd -D -s/opt/samba/smb.conf
+   /opt/samba/bin/nmbd -D -l/opt/samba/log -s/opt/samba/smb.conf
+   ;;
+'stop')
+   killproc nmbd
+   killproc smbd
+   ;;
+*)
+   echo Usage: /etc/init.d/samba.server { start | stop }
+   ;;
+esac



svn commit: samba r8382 - in branches/SAMBA_3_0_RELEASE/examples: . scripts

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:25:13 + (Tue, 12 Jul 2005)
New Revision: 8382

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

Log:
removing unused directorties
Removed:
   branches/SAMBA_3_0_RELEASE/examples/scripts/perl/
   branches/SAMBA_3_0_RELEASE/examples/svr4-startup/


Changeset:


svn commit: samba r8383 - in branches/SAMBA_3_0_RELEASE: .

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:30:13 + (Tue, 12 Jul 2005)
New Revision: 8383

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

Log:
update release notes
Modified:
   branches/SAMBA_3_0_RELEASE/WHATSNEW.txt


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


svn commit: samba r8385 - in branches/SAMBA_3_0/examples: .

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:35:45 + (Tue, 12 Jul 2005)
New Revision: 8385

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

Log:
removing empty directory
Removed:
   branches/SAMBA_3_0/examples/debugging/


Changeset:


svn commit: samba r8386 - in branches/SAMBA_3_0_RELEASE/examples: .

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:36:11 + (Tue, 12 Jul 2005)
New Revision: 8386

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

Log:
removing empty directory
Removed:
   branches/SAMBA_3_0_RELEASE/examples/debugging/


Changeset:


svn commit: samba r8387 - in branches: SAMBA_3_0/examples SAMBA_3_0/examples/scripts SAMBA_3_0_RELEASE/examples SAMBA_3_0_RELEASE/examples/scripts

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 16:37:39 + (Tue, 12 Jul 2005)
New Revision: 8387

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

Log:
moving wins_hook to scripts directory
Added:
   branches/SAMBA_3_0/examples/scripts/wins_hook/
   branches/SAMBA_3_0_RELEASE/examples/scripts/wins_hook/
Removed:
   branches/SAMBA_3_0/examples/wins_hook/
   branches/SAMBA_3_0_RELEASE/examples/wins_hook/


Changeset:
Copied: branches/SAMBA_3_0/examples/scripts/wins_hook (from rev 8384, 
branches/SAMBA_3_0/examples/wins_hook)

Copied: branches/SAMBA_3_0_RELEASE/examples/scripts/wins_hook (from rev 8385, 
branches/SAMBA_3_0_RELEASE/examples/wins_hook)



svn commit: samba r8388 - in branches: SAMBA_3_0/source/script SAMBA_3_0_RELEASE/source/script

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 17:23:19 + (Tue, 12 Jul 2005)
New Revision: 8388

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

Log:
fix typo in installman script
Modified:
   branches/SAMBA_3_0/source/script/installman.sh
   branches/SAMBA_3_0_RELEASE/source/script/installman.sh


Changeset:
Modified: branches/SAMBA_3_0/source/script/installman.sh
===
--- branches/SAMBA_3_0/source/script/installman.sh  2005-07-12 16:37:39 UTC 
(rev 8387)
+++ branches/SAMBA_3_0/source/script/installman.sh  2005-07-12 17:23:19 UTC 
(rev 8388)
@@ -13,7 +13,7 @@
   GROFF=$4# sh cmd line, including options 
 fi
 
-if test ! -d docs/manpages; then
+if test ! -d ../docs/manpages; then
echo No manpages present.  SVN development version maybe?
exit 0
 fi

Modified: branches/SAMBA_3_0_RELEASE/source/script/installman.sh
===
--- branches/SAMBA_3_0_RELEASE/source/script/installman.sh  2005-07-12 
16:37:39 UTC (rev 8387)
+++ branches/SAMBA_3_0_RELEASE/source/script/installman.sh  2005-07-12 
17:23:19 UTC (rev 8388)
@@ -13,7 +13,7 @@
   GROFF=$4# sh cmd line, including options 
 fi
 
-if test ! -d docs/manpages; then
+if test ! -d ../docs/manpages; then
echo No manpages present.  SVN development version maybe?
exit 0
 fi



svn commit: samba-docs r780 - in tags: .

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 18:24:09 + (Tue, 12 Jul 2005)
New Revision: 780

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

Log:
tagging 3.0.20pre2
Added:
   tags/release-3-0-20pre2/


Changeset:
Copied: tags/release-3-0-20pre2 (from rev 779, trunk)



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

2005-07-12 Thread jht
Author: jht
Date: 2005-07-12 18:47:32 + (Tue, 12 Jul 2005)
New Revision: 781

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

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


Changeset:
Modified: trunk/Samba3-HOWTO/TOSHARG-Passdb.xml
===
--- trunk/Samba3-HOWTO/TOSHARG-Passdb.xml   2005-07-12 18:24:09 UTC (rev 
780)
+++ trunk/Samba3-HOWTO/TOSHARG-Passdb.xml   2005-07-12 18:47:32 UTC (rev 
781)
@@ -1027,7 +1027,7 @@
 
para
indextermprimarySarbanes-Oxley/primary/indexterm
-   Under the terms of the Sarbanes-Oxley Act of 2002, American 
businessies and organizations are mandated to
+   Under the terms of the Sarbanes-Oxley Act of 2002, American 
businesses and organizations are mandated to
implement a series of literalinternal controls/literal and 
procedures to communicate, store,
and protect financial data. The Sarbanes-Oxley Act has far 
reaching implications in respect of:
/para



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

2005-07-12 Thread lha
Author: lha
Date: 2005-07-12 20:56:27 + (Tue, 12 Jul 2005)
New Revision: 8390

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

Log:
(smb_pam_start): move variable to scope within #ifdef to avoid warning
for those PAM implementations w/o PAM_RHOST and/or PAM_TTY

Modified:
   branches/SAMBA_4_0/source/auth/auth_unix.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_unix.c
===
--- branches/SAMBA_4_0/source/auth/auth_unix.c  2005-07-12 18:24:07 UTC (rev 
8389)
+++ branches/SAMBA_4_0/source/auth/auth_unix.c  2005-07-12 20:56:27 UTC (rev 
8390)
@@ -166,7 +166,6 @@
 
 static NTSTATUS smb_pam_start(pam_handle_t **pamh, const char *account_name, 
const char *remote_host, struct pam_conv *pconv)
 {
-   NTSTATUS nt_status;
int pam_error;
 
if (account_name == NULL || remote_host == NULL) {
@@ -186,6 +185,8 @@
DEBUG(4,(smb_pam_start: PAM: setting rhost to: %s\n, remote_host));
pam_error = pam_set_item(*pamh, PAM_RHOST, remote_host);
if (pam_error != PAM_SUCCESS) {
+   NTSTATUS nt_status;
+
DEBUG(4,(smb_pam_start: setting rhost failed with error: %s\n,
 pam_strerror(*pamh, pam_error)));
nt_status = pam_to_nt_status(pam_error);
@@ -204,6 +205,8 @@
DEBUG(4,(smb_pam_start: PAM: setting tty\n));
pam_error = pam_set_item(*pamh, PAM_TTY, samba);
if (pam_error != PAM_SUCCESS) {
+   NTSTATUS nt_status;
+
DEBUG(4,(smb_pam_start: setting tty failed with error: %s\n,
 pam_strerror(*pamh, pam_error)));
nt_status = pam_to_nt_status(pam_error);



svn commit: samba r8391 - in trunk/examples: . logon/ntlogon scripts scripts/printing/cups scripts/shares/perl scripts/shares/python

2005-07-12 Thread jerry
Author: jerry
Date: 2005-07-12 21:13:20 + (Tue, 12 Jul 2005)
New Revision: 8391

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

Log:
merging cleanup from 3.0
Added:
   trunk/examples/logon/
   trunk/examples/scripts/debugging/
   trunk/examples/scripts/printing/
   trunk/examples/scripts/shares/
Removed:
   trunk/examples/genlogon/
   trunk/examples/mklogon/
   trunk/examples/ntlogon/
   trunk/examples/scripts/backtrace
   trunk/examples/scripts/perl/
   trunk/examples/svr4-startup/
Modified:
   trunk/examples/logon/ntlogon/ntlogon.py
   trunk/examples/scripts/printing/cups/smbaddprinter.pl
   trunk/examples/scripts/printing/cups/smbdelprinter.pl
   trunk/examples/scripts/shares/perl/modify_samba_config.pl
   trunk/examples/scripts/shares/python/generate_parm_table.py
   trunk/examples/scripts/shares/python/modify_samba_config.py


Changeset:
Copied: trunk/examples/logon (from rev 8382, 
branches/SAMBA_3_0_RELEASE/examples/logon)

Deleted: trunk/examples/scripts/backtrace
===
--- trunk/examples/scripts/backtrace2005-07-12 20:56:27 UTC (rev 8390)
+++ trunk/examples/scripts/backtrace2005-07-12 21:13:20 UTC (rev 8391)
@@ -1,41 +0,0 @@
-#! /bin/sh
-#
-# Author: Andrew Tridgell tridge at samba dot org
-
-# we want everything on stderr, so the program is not disturbed
-exec 12
-
-BASENAME=$( basename $0)
-
-test -z ${GDB_BIN}  GDB_BIN=$( type -p gdb)
-if [ -z ${GDB_BIN} ]; then
-   echo ERROR: ${BASENAME} needs an installed gdb. 
-   exit 1
-fi
-
-if [ -z $1 ]; then
-   echo ERROR: ${BASENAME} needs a PID. 
-   exit 1
-fi
-PID=$1
-
-# use /dev/shm as default temp directory
-test -d /dev/shm  \
-   TMP_BASE_DIR=/dev/shm || \
-   TMP_BASE_DIR=/var/tmp
-TMPFILE=$( mktemp -p ${TMP_BASE_DIR} backtrace.XX)
-if [ $? -ne 0 ]; then
-   echo ERROR: ${basename} can't create temp file in ${TMP_BASE_DIR}. 
-   exit 1
-fi
-
-cat  EOF   ${TMPFILE}
-set height 0
-up 8
-bt full
-quit
-EOF
-
-${GDB_BIN} -x ${TMPFILE} /proc/${PID}/exe ${PID}
-
-/bin/rm -f ${TMPFILE}

Copied: trunk/examples/scripts/debugging (from rev 8382, 
branches/SAMBA_3_0_RELEASE/examples/scripts/debugging)

Copied: trunk/examples/scripts/printing (from rev 8382, 
branches/SAMBA_3_0_RELEASE/examples/scripts/printing)

Copied: trunk/examples/scripts/shares (from rev 8382, 
branches/SAMBA_3_0_RELEASE/examples/scripts/shares)



  1   2   >