Michael Adam
720c65faed
Fix flags in caller of lookup_name() in create_builtin_administrators().
...
Michael
(This used to be commit 46bfbf5c8a
)
2007-12-17 13:06:09 +01:00
Michael Adam
7d5415a2cc
Fix flags in all callers of lookup_name() in net_sam.c.
...
Michael
(This used to be commit 6d0db17a9e
)
2007-12-17 13:06:01 +01:00
Michael Adam
4c8a708288
Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().
...
Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.
Michael
(This used to be commit 1d4e0ad114
)
2007-12-17 13:05:54 +01:00
Michael Adam
286b050e15
Fix flags in call of lookup_name() in pdb_default_create_alias().
...
Use new flag LOOKUP_NAME_LOCAL.
Michael
(This used to be commit 280d6cb6c8
)
2007-12-17 13:05:45 +01:00
Michael Adam
470e970e41
Add combined flag LOOKUP_NAME_LOCAL.
...
Presence of LOOKUP_NAME_ISOLATED as the only flag is not the sign
for doing local lookups only but the sign for allowing lookups
of unqualified names. The correct sign is absence of the flag
LOOKUP_NAME_REMOTE.
Michael
(This used to be commit cd8c005744
)
2007-12-17 13:05:29 +01:00
Volker Lendecke
7ec9ee0e05
Remove t_doschar.c
...
(This used to be commit b89f87242b
)
2007-12-17 07:18:30 +01:00
Jeremy Allison
26daf2b479
Remove another static string and static passwd.
...
Jeremy.
(This used to be commit 2a700c5a57
)
2007-12-16 18:32:03 -08:00
Jeremy Allison
bd1172d106
Remove a static fstring.
...
Jeremy.
(This used to be commit 898c56c0ea
)
2007-12-16 18:02:32 -08:00
Volker Lendecke
3c490d91f1
get rid of doschar_table[]
...
If I'm not completely blind, then check_dos_char is *only* used in the case
when we can't mmap() valid.dat. To me this looks as if we initialize the 65536
bits in doschar_table[] with check_dos_char_slowly, use it once to initialize
valid_table[] and *never* use them again. I think there's no point in keeping
these 8k of modified memory around for an unlikely case (no "valid.dat") and
even that only to use it exactly once.
(This used to be commit 0bfea7259e
)
2007-12-16 10:57:01 -08:00
Volker Lendecke
e28c6813e0
Tiny fixes to init_valid_table()
...
(This used to be commit a8948e0727
)
2007-12-16 10:57:00 -08:00
Volker Lendecke
2ae400b213
Make init_doschar_table() static
...
It's only called directly before init_valid_table() anyway, so move it there.
(This used to be commit b6d1d24288
)
2007-12-16 10:56:58 -08:00
Volker Lendecke
c335e3322d
Make check_dos_char static
...
It's only called in t_doschar, a pretty bogus test program that is not compiled
by default
(This used to be commit 99c59e809e
)
2007-12-16 10:56:55 -08:00
Volker Lendecke
d365a43785
make use of unmarshall_sec_desc
...
(This used to be commit ced0c42f05
)
2007-12-16 14:15:16 +01:00
Volker Lendecke
8c6e781c3c
make use of [un]marshall_sec_desc, allow for fd==-1 in get/set_secdesc
...
(This used to be commit 585f5f8831
)
2007-12-16 14:05:30 +01:00
Volker Lendecke
c663c0055a
Cut down memory usage of registry initialization
...
(This used to be commit 264d5dfe9f
)
2007-12-16 14:02:46 +01:00
Volker Lendecke
dd4e99c9d7
Remove a static fstring
...
(This used to be commit a9c62c57db
)
2007-12-16 14:02:26 +01:00
Volker Lendecke
02dd1f7f4c
Make smb_np_struct talloc'ed
...
Convert "name" from string to a talloc'ed char *
(This used to be commit e82069f921
)
2007-12-16 12:59:21 +01:00
Volker Lendecke
a9b6deaa05
Remove unused code
...
(This used to be commit fcd45ad6fb
)
2007-12-16 12:59:14 +01:00
Jeremy Allison
8e86b7bb65
Doh, fix typo in error exit.
...
Jeremy.
(This used to be commit 44918f39c0
)
2007-12-15 23:32:28 -08:00
Jeremy Allison
5dbc4a23bc
Added patch originally by Andreas Schneider <anschneider@suse.de>
...
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.
(This used to be commit d0e33840fb
)
2007-12-15 23:22:25 -08:00
Jeremy Allison
0b33d60aff
Cope with valgrind > 3.2.x.
...
Jeremy.
(This used to be commit e799eb8da6
)
2007-12-15 23:05:30 -08:00
Jeremy Allison
d76b086cc9
More work on bug #5082 , use LC_ALL as this takes
...
precedence.
Jeremy.
(This used to be commit 446ebae76d
)
2007-12-15 22:28:38 -08:00
Volker Lendecke
2e07c2ade8
s/sid_to_string/sid_to_fstring/
...
least surprise for callers
(This used to be commit eb523ba776
)
2007-12-15 22:47:30 +01:00
Volker Lendecke
79cd97cc3f
Use dom_sid_string for sid_string_talloc
...
Remove some code duplication, but introduce one more dependency on librpc/ndr.
Easily turned around so that librpc/ndr depends on lib/util_sid if necessary
(This used to be commit 3a0b1b2060
)
2007-12-15 22:33:52 +01:00
Volker Lendecke
4312ad8b98
sid_string_static is no more :-)
...
We now have four ways to do sid_to_string:
sid_to_string: Convert it into an existing fstring, when you have one
sid_string_talloc: The obvious thing
sid_string_tos: For the lazy, use only with care
sid_string_dbg: The one to use in DEBUG statements
(This used to be commit 7b8276aaa4
)
2007-12-15 22:09:37 +01:00
Volker Lendecke
14ef4cdec1
Replace sid_string_static with sid_to_string
...
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
(This used to be commit c7c885078b
)
2007-12-15 22:09:37 +01:00
Volker Lendecke
d899b8c56a
Use sid_to_string directly
...
It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src))
(This used to be commit c221c246b1
)
2007-12-15 22:09:36 +01:00
Volker Lendecke
7b01537679
Replace sid_string_static with sid_string_tos
...
In utils/ I was a bit lazy...
(This used to be commit 60e830b0f4
)
2007-12-15 22:09:36 +01:00
Volker Lendecke
54ae9dfcbc
Use sid_string_talloc where we have a tmp talloc ctx
...
(This used to be commit 0a911d38b8
)
2007-12-15 22:09:36 +01:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec
)
2007-12-15 22:09:36 +01:00
Volker Lendecke
f498f661bc
Add sid_string_dbg
...
This makes use of the just added debug_ctx and will kill many
sid_string_static() calls
(This used to be commit 3e4148c280
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
db98b92144
Add debug_ctx according to an idea by Tridge
...
Sorry, Jeremy, I think for debug messages this is just the right way to do it.
(This used to be commit 6312016e27
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
105635e23c
Use sid_string_talloc where we have a tmp talloc ctx
...
(This used to be commit f00ab810d2
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
2cb7f5f632
add sid_string_talloc
...
(This used to be commit 9e3ef0923d
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
43473c8ded
Fix a segfault
...
sid_to_string still expects a fstring
(This used to be commit 1f352cdd19
)
2007-12-15 09:13:56 -08:00
Jeremy Allison
3cdd8da3ca
Fix for bug #5082 from Mathias Gug <mathiaz@ubuntu.com>, Steve Langasek <vorlon@debian.org>.
...
Recent versions of Linux-PAM support localization of user prompts,
so Samba must use the C locale when invoking PAM (directly or via
/usr/bin/passwd) to ensure that password chat values match the prompts in a
locale-invariant fashion.
Jeremy.
(This used to be commit bc13e93954
)
2007-12-14 17:02:50 -08:00
Stefan Metzmacher
9f2490c251
selftest: reenable wbinfo tests and pass --configfile instead of -s
...
metze
(This used to be commit 56251f7852
)
2007-12-14 19:39:49 +01:00
Stefan Metzmacher
ffe42b9015
wbinfo: use POPT_COMMON_CONFIGFILE
...
We can't use POPT_COMMON_SAMBA as the -s option is
already used by -s, --sid-to-name=SID.
Also load the config file after processing the cmdline options
metze
(This used to be commit 33cbd6903e
)
2007-12-14 19:38:23 +01:00
Stefan Metzmacher
16352dd60b
add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s)
...
metze
(This used to be commit af3392cc20
)
2007-12-14 19:36:14 +01:00
Stefan Metzmacher
4130053a57
selftest: disable wbinfo tests
...
wbinfo needs to take --config-file to work...
metze
(This used to be commit a8a74fc88c
)
2007-12-14 18:02:05 +01:00
Stefan Metzmacher
28c7c831ed
selftest: add a bunch of wbinfo based tests for winbindd
...
metze
(This used to be commit 88b6d2c0e8
)
2007-12-14 16:56:10 +01:00
Stefan Metzmacher
9bcfb5af7d
selftest: move workgroup name into WORKGROUP envvar
...
metze
(This used to be commit 8ace8fa82c
)
2007-12-14 16:19:18 +01:00
Karolin Seeger
6a364ce330
Revert smbclient changes.
...
Patch broke option -p.
Sorry for breaking the build!
Karolin
(This used to be commit 81dab4145f
)
2007-12-14 12:08:30 +01:00
Karolin Seeger
4d7a337d52
Make smbclient to display error message and usage in the case of invalid options.
...
(This used to be commit 04131b26de
)
2007-12-14 11:20:27 +01:00
Stefan Metzmacher
873f14ae40
winbindd: move domain child specific stuff into its own file
...
metze
(This used to be commit 075d315e0f
)
2007-12-14 08:28:35 +01:00
Stefan Metzmacher
adc31b9235
Revert "Fix for bug #4801 : Correctly implement lsa lookup levels for lookupnames."
...
As it breaks all tests which try to join a new machine account.
So more testing is needed...
metze
This reverts commit dd320c0924
.
(This used to be commit cccb80b7b7
)
2007-12-14 08:28:10 +01:00
Stefan Metzmacher
1410c9e37d
debug: fix crash bug when DEBUG() is used before setup_logging()
...
this was introduced by the pstring removal
(1ea3ac8014
)
metze
(This used to be commit a412e6c7c6
)
2007-12-14 08:22:14 +01:00
James Peach
40889dccdf
Move dns_sd.h include to fix the build.
...
(This used to be commit cf221a94bd
)
2007-12-13 22:12:21 -08:00
James Peach
7b457645fb
Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
...
(This used to be commit 0de2b3eb51
)
2007-12-13 20:56:53 -08:00
Rishi Srivatsavai
12ac4c3119
Register the smb service with mDNS if mSDN is supported.
...
If mDNS is supported, attempt to register the first port we are
listening on for the _smb._tcp service. This provides more reliable
service discovery than NetBIOS browsing.
(This used to be commit 1e7241517d
)
2007-12-13 20:56:29 -08:00