Volker Lendecke
1d83fbffae
Remove a pointless level of indirection
2008-10-09 12:06:39 +02:00
Jeremy Allison
543c6a02ae
For the vfs_acl_xattr.c module, make sure we map GENERIC file and directory bits
...
to specific bits every time a security descriptor is set. The S4 torture suite proves
that generic bits are not returned when querying an ACL set using them (ie. only
the specific bits are stored on disk).
Jeremy.
2008-10-08 18:06:58 -07:00
Jeremy Allison
646df8bec6
Deal with inheritance from parent directory when setting Windows
...
ACLs.
Jeremy.
2008-10-08 15:18:25 -07:00
Volker Lendecke
be63f86ce7
Remove unused CHECK_FSP macro
2008-10-08 13:01:22 +02:00
Jeremy Allison
ec5d09dbff
Update vfs version as I've added a const to the security_descriptor paramter in fset_nt_acl().
...
Need to watch the build farm to make sure I haven't broken the AIX or Solaris ACL modules.
Jeremy.
2008-10-07 17:50:01 -07:00
Jeremy Allison
2024d87cf5
Make map_errno_from_nt_status() a generic call, not just a cli specific one.
...
Remove some unused calls from vfs_acl_xattr. Test for SD's on existing files.
Jeremy.
2008-10-07 14:43:42 -07:00
Volker Lendecke
439086099a
Add netlogond auth method
...
This authenticates against a local running samba4 using SamLogonEx. We retrieve
the machine password using samba4's mymachinepwd script and store the schannel
key for re-use in secrets.tdb.
2008-10-06 09:54:17 +02:00
Volker Lendecke
2f6026248e
Add dyn_NCALRPCDIR
2008-10-06 09:54:16 +02:00
Volker Lendecke
f3ba7fc0b9
Store a local schannel key in secrets.tdb
2008-10-06 09:54:16 +02:00
Jeremy Allison
a9390d3047
Correctly fix smbclient to terminate on eof from server.
...
Jeremy.
2008-10-03 14:58:41 -07:00
Jeremy Allison
f6c883b4b0
Simply our main loop processing. A lot :-). Correctly use events for all the previous "special" cases.
...
A step on the way to adding signals to the events and being able to merge the S3 event system with
the S4 one.
Jeremy.
2008-10-03 14:18:35 -07:00
Günther Deschner
81fde58551
s3-nbt: remove double nbt netlogon opcodes.
...
Guenther
2008-09-25 20:11:55 +02:00
Jeremy Allison
7e38942431
Remove these no longer used include files.
...
Jeremy.
2008-09-25 10:06:11 -07:00
Karolin Seeger
9cf1a68977
printing: Rename new parameter "cups timeout" to "cups connection timeout".
...
Karolin
2008-09-24 11:09:04 -07:00
Jelmer Vernooij
edeb20b921
Merge branch 'master' of ssh://git.samba.org/data/git/samba into arc4
...
Conflicts:
source3/include/includes.h
2008-09-24 18:38:45 +02:00
Jelmer Vernooij
d2062ab74f
Use common crc32 implementation.
2008-09-24 16:46:02 +02:00
Jelmer Vernooij
da01822671
Use common arcfour implementation.
2008-09-24 16:04:43 +02:00
Jelmer Vernooij
2413a72006
Use shared copy of hmac5 implementation.
2008-09-24 15:44:34 +02:00
Jelmer Vernooij
45bc578664
Use common MD5.
2008-09-24 15:34:30 +02:00
Günther Deschner
f07431f5ba
s3-nbt: use the new generated nbt.
...
Guenther
2008-09-24 03:34:23 +02:00
Karolin Seeger
765e5d2282
printing: Add new parameter "cups timeout".
...
The default timeout for connections to CUPS servers is set
to 5 minutes in the CUPS libraries. The smbd hangs on startup
until the timeout is reached if the CUPS server is unreachable.
This parameter makes the timeout configurable. The default value
is set to 30 seconds.
Karolin
2008-09-23 16:57:58 -07:00
Günther Deschner
022947097f
s3-ndr: add stub smb_iconv_convenience to some ndr_ functions.
...
Guenther
2008-09-23 23:35:14 +02:00
Günther Deschner
7f5aef542a
s3-nbt: use ../libcli/nbt helper.
...
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
c48186f507
s3: use samba4 prototype for ndr_push/pull_struct_blob.
...
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
f093ddbc11
s3-charset: add smb_iconv_convenience.
...
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
e194ded26e
netlogon: move password change code out to rpccli_netlogon_set_trust_password.
...
Guenther
2008-09-21 22:30:39 +02:00
Günther Deschner
1f9624175a
netlogon: add init_netr_CryptPassword.
...
Guenther
2008-09-21 22:30:10 +02:00
Simo Sorce
258cec7756
Add comment to explain version bump
2008-09-19 13:51:40 -04:00
Gerald (Jerry) Carter
7d391c09ee
idmap: Increment the interface number after Volker's rewrite.
2008-09-19 11:43:45 -05:00
Jelmer Vernooij
06999ae473
Merge branch 'master' of ssh://git.samba.org/data/git/samba into singlelib
2008-09-17 14:34:54 +02:00
Gerald (Jerry) Carter
28d2683903
* Allow an admin to define the "uid" attribute for a RFC2307
...
user object in AD to be the username alias.
For example:
$ net ads search "(uid=coffeedude)"
distinguishedName: CN=Gerald W. Carter,CN=Users,DC=pink,DC=plainjoe,DC=org
sAMAccountName: gcarter
memberOf: CN=UnixUsers,CN=Users,DC=pink,DC=plainjoe,DC=org
memberOf: CN=Domain Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
memberOf: CN=Enterprise Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
memberOf: CN=Schema Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
uid: coffeedude
uidNumber: 10000
gidNumber: 10000
unixHomeDirectory: /home/gcarter
loginShell: /bin/bash
$ ssh coffeedude@192.168.56.91
Password:
coffeedude@orville:~$ id
uid=10000(coffeedude) gid=10000(PINK\unixusers) groups=10000(PINK\unixusers)
$ getent passwd PINK\\gcarter
coffeedude:*:10000:10000::/home/gcarter:/bin/bash
$ getent passwd coffeedude
coffeedude:*:10000:10000::/home/gcarter:/bin/bash
$ getent group PINK\\Unixusers
PINK\unixusers❌ 10000:coffeedude
2008-09-16 10:35:21 -07:00
Gerald (Jerry) Carter
d6de32db2f
winbindd: Add support for name aliasing.
...
* Add support user and group name aliasing by expanding
the ws_name_replace() and ws_name_return() functions.
The lookup path is
aliases -> qualified name -> SID
SID -> fully qualified name -> alias
In other words, the name aliasing support is a thin layer
built on top of SID/NAME translation.
* Rename the ws_name_XX() functions to normalize_name_map()
and normalize_name_unmap(). Chaneg interface to return
NTSTATUS rather than char *.
* Add associated cache validation functions.
2008-09-16 10:27:49 -07:00
Jelmer Vernooij
bf21371c09
Merge branch 'singlereplace' into single
...
Conflicts:
source4/configure.ac
source4/torture/local/config.mk
2008-09-16 16:45:10 +02:00
Jelmer Vernooij
0888ffa2b7
Make Samba 3 and Samba 4 both use the same single copy of libreplace.
2008-09-16 16:30:14 +02:00
Jelmer Vernooij
80a5da73e9
Share talloc source code between Samba 3 and Samba 4.
2008-09-16 14:36:41 +02:00
Volker Lendecke
0e9f348f1d
Add a more explaining comment
...
(This used to be commit edd70836da
)
2008-09-12 21:56:40 +02:00
Günther Deschner
893f787314
doserr: add WERR_NO_SUCH_ALIAS.
...
Guenther
(This used to be commit e065802a61
)
2008-09-12 14:10:26 +02:00
Günther Deschner
3f41545b61
messaging: move types to IDL.
...
Guenther
(This used to be commit 6c346d0eb2
)
2008-09-12 14:09:42 +02:00
Volker Lendecke
c81b5fd440
Add async trans/trans2/nttrans calls to libsmb
...
Logic stolen from Samba4, naturally the specific implementation differs a bit.
(This used to be commit 4b8bc5b03d
)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6ba8c105c5
Add utility function cli_in_chain()
...
This gives a hint whether a function is called from within the middle of a
chain. In particular the trans calls don't really like this.
(This used to be commit 4252b32db5
)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6344b8ec27
make smb_bytes_push_str public
...
(This used to be commit d611f599b4
)
2008-09-09 17:37:34 +02:00
Volker Lendecke
ce47a2b2e3
Add a utility function to append a DATA_BLOB to a talloc object
...
(This used to be commit d8259cbe66
)
2008-09-09 17:37:34 +02:00
Stefan Metzmacher
c9fb96146c
smbd: some write time fixes
...
- only the first non truncating write causes
the write time update with 2 seconds delay.
It's not enough to check for an existing update event
as it will be NULL after the event was triggered.
- SMBwrite truncates always update the write time
unless the sticky write time is set.
- SMBwrite truncates don't trigger a write time update on close.
metze
(This used to be commit 3d17089b6d
)
2008-09-08 16:25:41 +02:00
Jeremy Allison
405b072431
Write times code update.
...
Ok, here's the fix for the write times breakage
with the new tests in S4 smbtorture.
The key is keeping in the share mode struct
the "old_file_time" as the real write time,
set by all the write and allocation calls,
and the "changed_write_time" as the "sticky"
write time - set by the SET_FILE_TIME calls.
We can set them independently (although I
kept the optimization of not setting the
"old_file_time" is a "changed_write_time"
was already set, as we'll never see it.
This allows us to update the write time
immediately on the SMBwrite truncate case,
SET_END_OF_FILE and SET_ALLOCATION_SIZE calls,
whilst still have the 2 second delay on the
"normal" SMBwrite, SMBwriteX calls.
I think in a subsequent patch I'd like to
change the name of these from "old_file_time"
to "write_time" and "changed_write_time" to
"sticky_write_time" to make this clearer.
I think I also fixed a bug in Metze's original
code in that once a write timestamp had been
set from a "normal" SMBwriteX call the fsp->update_write_time_triggered
variable was set and then never reset - thus
meaning the write timestamp would never get
updated again on subsequent SMBwriteX's.
The new code checks the update_write_time_event
event instead, and doesn't update is there's
an event already scheduled.
Metze especially, please check this over for
your understanding.
Jeremy.
(This used to be commit 6f20585419
)
2008-09-05 19:00:48 -07:00
Simo Sorce
3fa16da8c7
Revert "Split lookup_name() and create a new functiong called"
...
This reverts commit 8594edf666
.
(This used to be commit ad462e2e2d
)
2008-09-03 14:36:43 -04:00
Simo Sorce
c5894e1477
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit 8e4dca3b94
)
2008-09-03 11:52:54 -04:00
Volker Lendecke
84fca380f2
factor prs_append_some_data out of prs_append_some_prs_data
...
(This used to be commit 32cb45c962
)
2008-09-03 14:47:48 +02:00
Volker Lendecke
c97880e979
Remove unused CLI_DO_RPC macros
...
(This used to be commit f5212c64d2
)
2008-09-02 12:14:44 +02:00
Günther Deschner
087a992b97
doserr: add WERR_WRONG_PASSWORD.
...
Guenther
(This used to be commit 977fec76b7
)
2008-09-02 00:46:10 +02:00
Günther Deschner
ea0686e64a
kerberos: fix HAVE_KRB5 related build issue.
...
Guenther
(This used to be commit 7d7ba83977
)
2008-08-29 11:38:02 +02:00
Günther Deschner
bff20e14c3
kerberos: use KRB5_KT_KEY macro where appropriate.
...
Guenther
(This used to be commit a042dffd71
)
2008-08-29 11:01:34 +02:00
Günther Deschner
87ea8f3fae
kerberos: add KRB5_KT_KEY abstraction macro.
...
Guenther
(This used to be commit be846d5383
)
2008-08-29 11:01:34 +02:00
Günther Deschner
0380fe9d82
kerberos: move the KRB5_KEY* macros to header file.
...
Guenther
(This used to be commit c28fa17fff
)
2008-08-29 10:59:28 +02:00
Volker Lendecke
f294f51bf0
Remove cli_request_get()
...
req->private_data==NULL at this point is definitely a bug.
(This used to be commit ce3dc9f616
)
2008-08-28 18:22:49 +02:00
Volker Lendecke
228a12681b
Add async smbecho client support
...
(This used to be commit c1d645fbe3
)
2008-08-28 18:16:00 +02:00
Volker Lendecke
bb0fc9cfce
Add cli_request->recv_helper
...
Necessary for requests with multiple replies
(This used to be commit cb2e338eb3
)
2008-08-28 18:15:59 +02:00
Volker Lendecke
b054f14111
Activate code to enable chained requests
...
Add the CHAIN1 torture test
(This used to be commit 82992d74a9
)
2008-08-28 18:15:59 +02:00
Volker Lendecke
77d1b29e25
Move "struct cli_request" from client.h to async_smb.h
...
Also add some comments
(This used to be commit 2ecc311f78
)
2008-08-28 17:53:37 +02:00
Volker Lendecke
128524930d
Add cli_pull_reply
...
Along the lines of cli_request_send this abstracts away the smb-level buffer
handling when parsing replies we got from the server.
(This used to be commit 253134d3aa
)
2008-08-28 17:53:37 +02:00
Volker Lendecke
2650207d4a
Remove cli->event_ctx, pass it explicitly
...
Storing the event_context as permanent state in struct cli_state creates more
complex code than necessary IMO.
(This used to be commit debb37f703
)
2008-08-28 17:53:37 +02:00
Volker Lendecke
de9fcfc795
Add async open&x
...
(This used to be commit faf353edd6
)
2008-08-28 17:53:36 +02:00
Volker Lendecke
8f408a676e
Add async cli_close
...
(This used to be commit f84a2b5dbf
)
2008-08-28 17:53:36 +02:00
Volker Lendecke
58aa97c0d9
Refactoring: Add the routine cli_request_send()
...
cli_request_send() is supposed to bundle all generic SMB-header handling. This
makes cli_request_new static to async_smb.c.
(This used to be commit 7e73dd4e76
)
2008-08-28 17:53:36 +02:00
Jeremy Allison
29af730964
Fix the wcache_invalidate_samlogon calls.
...
Jeremy.
(This used to be commit 7c820899ed
)
2008-08-27 17:29:10 -07:00
Jeremy Allison
1cae2ac905
Add st_birthtime and friends for accurate create times on systems that support it (*BSD and MacOSX).
...
Should have done this ages ago, sorry.
Jeremy.
(This used to be commit 4c3a955890
)
2008-08-27 15:06:14 -07:00
Simo Sorce
a1de4e988d
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit e038f1cf9f
)
2008-08-26 18:56:49 -04:00
Jeremy Allison
79150da70b
Here is a re-working of the winbindd
...
reconnect code to cope with rebooting a DC. This
replaces the code I asked Volker to revert.
The logic is pretty simple. It adds a new parameter,
"winbind reconnect delay", set to 30 seconds by
default, which determines how long to wait between
connection attempts.
To avoid overwhelming the box with DC-probe
forked children, the code now keeps track of
the DC probe child per winbindd_domain struct
and only starts a new one if the existing one
has died.
I also added a little logic to make sure the
dc probe child always sends a message whatever
the reason for exit so we will always reschedule
another connect attempt.
Also added documentation.
Jeremy.
(This used to be commit 8027197635
)
2008-08-20 16:24:22 -07:00
Stefan Metzmacher
eb8dd6a811
smbd: fix the handling of create_options to pass RAW-OPEN
...
Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.
metze
(This used to be commit 7b4c8a4e39
)
2008-08-20 15:50:26 +02:00
Jeremy Allison
f23a6b7c93
Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
...
reported by Ted Percival <ted@midg3t.net>.
Jeremy.
(This used to be commit ab06efccf3
)
2008-08-19 17:30:30 -07:00
Simo Sorce
5e7655fa27
Split lookup_name() and create a new functiong called
...
lookup_domain_name(). This new function accept separated
strings for domain and name.
(This used to be commit 8594edf666
)
2008-08-17 19:54:41 -04:00
Michael Adam
25f31194e5
Add modules_path() to construct paths to files in MODULESDIR.
...
Michael
(This used to be commit 5ef9da6f4f
)
2008-08-15 23:19:57 +02:00
Michael Adam
cc83d5b9f1
dynconfig: add support for MODULESDIR.
...
Michael
(This used to be commit 34309f097f
)
2008-08-15 23:19:57 +02:00
Michael Adam
b39040cfe2
dynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h
...
Michael
(This used to be commit 85a781fa02
)
2008-08-15 23:19:56 +02:00
Michael Adam
1d60a7d662
dynconfig: remove unused prototypes.
...
set_dyn_STATEDIR, is_default_dyn_STATEDIR,
set_dyn_CACHEDIR, is_default_dyn_CACHEDIR
are neither used nor implemented.
Michael
(This used to be commit f30b70b2c3
)
2008-08-15 23:19:56 +02:00
Michael Adam
f2d7c593b5
proto.h: remove prototypes from dynconfig.c
...
These are also in dynconfig.h and were originally added
by "make proto" by accident.
Michael
(This used to be commit 4fb69fe1ee
)
2008-08-15 23:19:55 +02:00
Michael Adam
4136ab3c98
Put prototypes of modules/vfs_irixacl.c to new modules/vfs_irixacl.h.
...
Thereby (hopefully) fixing the potential build problems with IRIX acls.
Michael
(This used to be commit 61c201d416
)
2008-08-14 11:22:49 +02:00
Michael Adam
34294b31aa
Put prototypes of modules/vfs_hpuxacl.c to new modules/vfs_hpuxacl.h.
...
Thereby (hopefully) fixing the potential build problems with HPUX acls.
Michael
(This used to be commit 4f2a1de990
)
2008-08-14 11:22:48 +02:00
Michael Adam
1c72d476ec
Put prototypes of modules/vfs_solarisacl.c to new modules/vfs_solarisacl.h.
...
Thereby (hopefully) fixing the potential build problems with solaris acls.
Michael
(This used to be commit 8413c05afc
)
2008-08-14 11:22:48 +02:00
Michael Adam
14fd4ac3ea
Put prototypes of modules/vfs_tru64acl.c to new modules/vfs_tru64acl.h.
...
Thereby (hopefully) fixing the build with tru64 acls.
Michael
(This used to be commit 1ab64b6985
)
2008-08-14 11:22:48 +02:00
Michael Adam
7871fa0b69
Put prototypes of modules/vfs_posixacl.c into new modules/vfs_posixacl.h.
...
Michael
(This used to be commit 876f679343
)
2008-08-14 11:22:48 +02:00
Michael Adam
805bd92973
smbd/conn: fix prototype change of conn_close_all() in proto.h.
...
(Cleaning "ensure we exit with non-zero status on EOF on socket"
after rebasing to v3-3-test which has no "make proto" anymore.)
Michael
(This used to be commit a958c6bf1e
)
2008-08-13 11:54:12 +02:00
Andrew Tridgell
0f41961e4f
first cut at adding full transactions for ctdb to samba3
...
(This used to be commit f91a3e0f7b
)
2008-08-13 11:54:08 +02:00
Ronnie Sahlberg
fb97047a84
Use transaction start/cancel for persistent writes to avoid leaving the database in an inconsistent state if we crash during the operation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
(This used to be commit 09329f1f91
)
2008-08-13 11:54:06 +02:00
Volker Lendecke
8d25729705
Fix prototypes
...
(This used to be commit 8b9d127146
)
2008-08-12 11:28:29 +02:00
Volker Lendecke
340ab6a256
idmap rewrite
...
(This used to be commit 30a180f2fc
)
2008-08-12 11:28:29 +02:00
Günther Deschner
050db35262
doserr: add WERR_MEMBER_IN_ALIAS.
...
Guenther
(This used to be commit b62de0d194
)
2008-08-11 19:04:00 +02:00
Michael Adam
33e3e94e0c
nmbd_packets: make queue_packet() public.
...
Michael
(This used to be commit 363eb90ce8
)
2008-08-09 01:15:58 +02:00
Michael Adam
bf291c95bc
loadparm: add two parameters "init logon delay hosts" and "init logon delay"
...
"init logon delays hosts" takes a list of hosts names or addresses
or networks for which the initial SAMLOGON reply should be delayed
(so other DCs get preferred by XP workstations if there are any).
This option takes the same type of list as "hosts allow" does.
"init logon delay" allows one to configure the delay for the hosts
configured for delayed initial samlogon with "init logon delayed hosts".
The value is interpreted as milliseconds. The default value is 100.
This commit only introduces the parameters.
They will be activated in a subsequent commit.
Michael
(This used to be commit f7c1f85438
)
2008-08-09 01:15:58 +02:00
Michael Adam
e0fa472a3b
lib/access: make list_match() public.
...
Michael
(This used to be commit 742bedce41
)
2008-08-09 01:15:58 +02:00
Michael Adam
f07cfe3b68
lib/access: make client_match() public.
...
Michael
(This used to be commit 1b2dec93b6
)
2008-08-09 01:15:57 +02:00
Volker Lendecke
b67def0a55
Add simple async wrappers around send, recv and connect
...
To be used later :-)
(This used to be commit 0d161d336a
)
2008-08-08 18:30:57 +02:00
Jeremy Allison
617bf10c66
Fix bug #5675 with a varient of Tim Waugh's patch,
...
as proposed by James Peach.
Jeremy.
(This used to be commit 5c27ad7583
)
2008-08-07 17:55:57 -07:00
Michael Adam
0db26805da
dssync keytab: add support for keeping track of the up-to-date-ness vector.
...
The startup operation should get the old up-to-date-ness vector from the backend
and the finish operation should store the new vector to the backend after replication.
This adds the change of the signatures of the operations ot the dssync_ops struct
and the implementation for the keytab ops. The up-to-date-ness vector is stored
under the principal constructed as UTDV/$naming_context_dn@$dns_domain_name.
The vector is still uninterpreted in libnet_dssync_process().
This will be the next step...
This code is essentially by Metze.
Michael
(This used to be commit 01318fb27a
)
2008-08-01 16:04:40 +02:00
Tim Prouty
097b27dbcc
Enabled domain groups to be added to builtin groups at domain join time
...
Previously this was done at token creation time if the Administrators and Users
builtins hadn't been created yet. A major drawback to this approach is that if
a customer is joined to a domain and decides they want to join a different
domain, the domain groups from this new domain will not be added to the
builtins.
It would be ideal if these groups could be added exclusively at domain join
time, but we can't rely solely on that because there are cases where winbindd
must be running to allocate new gids for the builtins. In the future if there
is a way to allocate gids for builtins without running winbindd, this code
can be removed from create_local_nt_token.
- Made create_builtin_users and create_builtin_administrators non-static so
they can be called from libnet
- Added a new function to libnet_join that will make a best effort to add
domain administrators and domain users to BUILTIN\Administrators and
BUILTIN\Users, respectively. If the builtins don't exist yet, winbindd must be
running to allocate new gids, but if the builtins already exist, the domain
groups will be added even if winbindd is not running. In the case of a
failure the error will be logged, but the join will not be failed.
- Plumbed libnet_join_add_dom_rids_to_builtins into the join post processing.
(This used to be commit e92faf5996
)
2008-07-30 14:06:36 -07:00
Günther Deschner
21a8177ed2
rpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.
...
Guenther
(This used to be commit 87b6aac135
)
2008-07-30 16:42:23 +02:00
Volker Lendecke
49403ee82f
Make create_conn_struct() public
...
(This used to be commit e115e25822
)
2008-07-27 17:56:48 +02:00
Volker Lendecke
b3f04dd32f
Save 128 byte (32-bit platform) or 256 byte (64-bit) per connection_struct
...
This was just too easy not to use :-)
(This used to be commit a9922a2a36
)
2008-07-26 16:52:02 +02:00
Volker Lendecke
33cbe2f88c
make read/write to internal pipes available externally
...
(This used to be commit e11b5cb1e0
)
2008-07-26 13:20:10 +02:00
Volker Lendecke
a803f0a920
Refactoring: Make close_internal_rpc_pipe_hnd a talloc destructor
...
(This used to be commit 10b47a0c2c
)
2008-07-26 13:20:10 +02:00
Volker Lendecke
1ee37bc9c3
Refactor make_internal_rpc_pipe_p: connection_struct is not needed
...
(This used to be commit defcf0eecf
)
2008-07-26 13:20:10 +02:00
Volker Lendecke
bdf1747c98
Create doxygen comments for async_req.[ch]
...
(This used to be commit 1dab45b16a
)
2008-07-26 12:59:41 +02:00
Volker Lendecke
042600cbac
Make api_rpcTNP static to srv_pipe.c
...
(This used to be commit 256c93a8b3
)
2008-07-26 11:25:24 +02:00
Volker Lendecke
20675473b9
YESS -- remove the PI_* pipe constants
...
(This used to be commit 26a40f708a
)
2008-07-21 14:36:32 +02:00
Volker Lendecke
da6e4248ee
Make idl: cli_do_rpc_ndr does not use pipe_idx anymore
...
(This used to be commit ffd2ff5325
)
2008-07-21 14:36:31 +02:00
Volker Lendecke
a20c498310
Remove unused function rpccli_is_pipe_idx
...
(This used to be commit 287ffc17a0
)
2008-07-21 14:36:31 +02:00
Volker Lendecke
86bb746406
Refactoring: CLI_DO_RPC_* uses interface instead of pipe_idx
...
(This used to be commit 6d2209ba5d
)
2008-07-21 14:36:31 +02:00
Volker Lendecke
303f98af2f
Remove now unused cli_get_pipe_name
...
(This used to be commit ed4a447103
)
2008-07-21 14:36:30 +02:00
Volker Lendecke
346a8d1bdc
Remove now unused cli_get_pipe_idx
...
(This used to be commit e02a550527
)
2008-07-21 14:36:29 +02:00
Volker Lendecke
9664f24ecf
Remove now unused cli_get_iface
...
(This used to be commit 2e60701e8d
)
2008-07-21 14:36:28 +02:00
Volker Lendecke
798b56edae
Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idx
...
(This used to be commit 726e56c72f
)
2008-07-21 14:36:27 +02:00
Volker Lendecke
55f84c05bd
Refactoring: Change calling conventions for cli_rpc_pipe_open_krb5
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit f2656e5c2e
)
2008-07-20 17:37:14 +02:00
Volker Lendecke
99526d391d
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f
)
2008-07-20 17:37:14 +02:00
Volker Lendecke
52ff49600e
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp_auth_schannel
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit ff87127baf
)
2008-07-20 17:37:13 +02:00
Volker Lendecke
ba2cb35ca5
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel_with_key
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 78e9c937ff
)
2008-07-20 17:37:13 +02:00
Volker Lendecke
b8fc15be95
Refactoring: Make get_schannel_session_key return NTSTATUS
...
(This used to be commit a0793cc853
)
2008-07-20 17:37:12 +02:00
Volker Lendecke
e0be03d8d5
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955
)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc
)
2008-07-20 17:37:11 +02:00
Volker Lendecke
65dfc40a4a
Store copies of the syntax ids in rpc_pipe_client
...
(This used to be commit 848a3497e3
)
2008-07-20 17:06:21 +02:00
Volker Lendecke
66669bad43
Simplify pipe_names: we only do ndr_transfer_syntax anyway
...
(This used to be commit b808403af5
)
2008-07-20 17:06:21 +02:00
Volker Lendecke
867b61d0a1
The PIPE_ pipename macros are only used in cli_pipe.c
...
(This used to be commit 03f7af26f2
)
2008-07-19 21:07:14 +02:00
Volker Lendecke
2e7cb1a5cc
Introduce is_known_pipename
...
This scans the list of pipes registered via rpc_pipe_register_commands instead
of using static tables.
(This used to be commit 283e603998
)
2008-07-19 20:27:56 +02:00
Volker Lendecke
8e02cb17fe
Ooops, GUID_equal was already around :-)
...
(This used to be commit 9a0bc277f2
)
2008-07-19 19:50:36 +02:00
Günther Deschner
24f0f552de
libads: add prototype for ads_connect_gc().
...
Guenther
(This used to be commit 0122e4941d
)
2008-07-18 16:42:47 +02:00
Volker Lendecke
bcb652451b
Simplify the RPC servers: remove get_pipe_fns
...
The per-server xxx_get_pipe_fns functions can go once all the RPC servers are
converted
(This used to be commit 6aa2391cbe
)
2008-07-18 15:04:05 +02:00
Günther Deschner
6a3b742db7
util: add policy_hnd_equal().
...
Guenther
(This used to be commit 6aca163e89
)
2008-07-17 10:32:03 +02:00
Volker Lendecke
e0f3ea2cbe
In api_pipe_bind_req(), check for the iface id, not the pipe name
...
This requires to store the rpc_interface in "struct rpc_table"
(This used to be commit 654f8de849
)
2008-07-16 23:19:48 +02:00
Volker Lendecke
e65ea7471e
Add ndr_syntax_id_equal()
...
(This used to be commit 5fc90908de
)
2008-07-16 23:19:48 +02:00
Andreas Schneider
43892abff6
The buf in the smbclient write function should be const.
...
As we try to provide POSIX function, we should use const like all other
POSIX function.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit 36e5df5954
)
2008-07-16 10:41:43 -04:00
Derrell Lipman
db7bff1bab
Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into v3-3-test
...
(This used to be commit 11d74fc51c
)
2008-07-16 09:48:23 -04:00
Derrell Lipman
a49f6f17c6
Fix typos.
...
libsmbclient doesn't have bool defined; rather it uses smbc_bool
Derrell
(This used to be commit e1ade80f46
)
2008-07-16 09:45:02 -04:00
Jeremy Allison
24eec914c0
Fix swat. Bug #5613 .
...
Jeremy
(This used to be commit 15920f8388
)
2008-07-15 14:37:48 -07:00
Michael Adam
dbac75b466
popt: add a popt_common_debuglevel set of options providing -d|--debuglevel
...
Michael
(This used to be commit e7d08b6730
)
2008-07-15 13:03:24 +02:00
Simo Sorce
02e592486f
Make again idmap_init static
...
(This used to be commit e113b7c13f
)
2008-07-12 21:40:28 -04:00
Volker Lendecke
622d36aa41
Revert "Make idmap_init() static"
...
This reverts commit c8d1bbfddc
.
(This used to be commit 5cded3da00
)
2008-07-11 17:53:26 +02:00
Volker Lendecke
d670d0a09b
Revert "Remove gencache_[un]lock_entry"
...
This reverts commit 7a5a575ffe
.
(This used to be commit 62e444dd50
)
2008-07-11 17:53:25 +02:00
Volker Lendecke
b6dcc24987
Revert "Convert idmap_cache to gencache"
...
This reverts commit 0bf0434f22
.
(This used to be commit cc53667773
)
2008-07-11 17:53:24 +02:00
Volker Lendecke
ebb2d70a60
Revert "Make use of ADD_TO_ARRAY"
...
This reverts commit 81f334bd6d
.
(This used to be commit d4d106776a
)
2008-07-11 17:53:24 +02:00
Derrell Lipman
31262a59bc
[BUG 5580] Allow access to DFS shares via libsmbclient
...
Brian Sheehan provided a nice patch intended for the 3.0 code base. This
commit applies a similar patch for the 3.3 code base. It adds a new public
function to libsmbclient -- smbc_set_credentials() -- that may be called from
the authentication callback when DFS referrals are in use.
Derrell
(This used to be commit 888f922bd0
)
2008-07-08 20:44:39 -04:00
Volker Lendecke
ca34287063
Make use of ADD_TO_ARRAY
...
(This used to be commit 81f334bd6d
)
2008-07-05 12:19:13 +02:00
Volker Lendecke
0234276af8
Convert idmap_cache to gencache
...
(This used to be commit 0bf0434f22
)
2008-07-05 12:19:13 +02:00
Volker Lendecke
352b5c1857
Remove gencache_[un]lock_entry
...
Günther agreed that it might be unnecessary in dsgetdcname_cache_store() :-)
(This used to be commit 7a5a575ffe
)
2008-07-03 16:40:46 +02:00
Volker Lendecke
1999791b7c
Make idmap_init() static
...
This is called only from idmap_alloc_init, which feels kindof weird.
Digging deeper in the code...
(This used to be commit c8d1bbfddc
)
2008-07-02 13:34:09 +02:00
Darshan Purandare
065760ede0
MSG_DEBUG now forwarded to all the winbindd children by parent.
...
smbcontrol winbindd debug level would only set the debug level of the
parent winbindd process and not the child processes. This patch adds
the functionality of broadcasting the debug message to all winbindd
children. Now the debug level message is propagated to all the winbindd
processes that includes parent and children.
(This used to be commit cfbcfc3ffe
)
2008-07-01 17:52:24 -07:00
Günther Deschner
16e44ee112
kerberos: allow to keep entries with old kvno's while creating keytab.
...
Guenther
(This used to be commit 6194244bd9
)
2008-06-30 12:38:40 +02:00
Günther Deschner
52635c6f58
kerberos: rename smb_krb5_kt_add_entry to smb_krb5_kt_add_entry_ext.
...
Guenther
(This used to be commit 48600a0019
)
2008-06-30 12:38:32 +02:00
Volker Lendecke
cf9665016f
Let send_trans_reply work on only the inbuf
...
It does not really need the whole smb_request
(This used to be commit d3facf4cbd
)
2008-06-28 10:38:51 +02:00
Volker Lendecke
5cd8a42720
Factor out create_outbuf, creating an outbuf just given an inbuf
...
(This used to be commit 50427cbf63
)
2008-06-28 10:38:51 +02:00
Gerald W. Carter
9ff1ffcbee
libads: Add API call to connect to a global catalog server.
...
Extends ads_connect() to a new call ads_connect_gc() which connects on port
3268 rather than port 389. Also makes ads_try_connect() static and
only used internally to ldap.c
(This used to be commit f4c37dbe2c
)
2008-06-27 10:26:11 -04:00
Karolin Seeger
e08943f8d8
Fix warnings on SuSE 9.0.
...
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.
(This used to be commit 30d181c924
)
2008-06-27 15:51:35 +02:00
Jeremy Allison
799252f635
Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
...
Jeremy.
(This used to be commit 9e2ab30d3c
)
2008-06-26 19:46:18 -07:00
Volker Lendecke
c885ae01eb
Remove current_user reference from printfsp.c
...
(This used to be commit 510f45d01a
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
a3c0be6325
Change print_access_check to take auth_serversupplied_info instead of current_user
...
Reason: This is the main user of p->current_user which I would like to remove
(This used to be commit fd43059b3d
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
aa02c3fcd5
Remove p->vuid
...
The users can use p->server_info.
Now pipes_struct is decoupled from the SMB transport.
(This used to be commit d4cf5a1319
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
747a580952
Now that we have p->server_info, use p->server_info->user_session_key
...
(This used to be commit aefad64e3a
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
d331624fdf
Add server_info to pipes_struct
...
(This used to be commit d621867bb8
)
2008-06-26 13:13:22 +02:00
Günther Deschner
5a4cf3dbf2
errors: add WERR_DS_DRA_BAD_NC and WERR_DS_DRA_BAD_DN.
...
Guenther
(This used to be commit 2efe18f7c9
)
2008-06-26 10:24:02 +02:00
Günther Deschner
402733b518
rpc_client: add rpccli_samr_chgpasswd_user() call.
...
Guenther
(This used to be commit 10fd2baa83
)
2008-06-25 23:58:50 +02:00
Günther Deschner
14d500c0e7
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
...
Guenther
(This used to be commit b1209a039b
)
2008-06-25 23:58:50 +02:00
Günther Deschner
059293cbf4
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
...
Guenther
(This used to be commit 5b4650d56c
)
2008-06-25 23:58:50 +02:00
Günther Deschner
92bd665aea
rpc_client: let cli_get_session_key() return talloced session key.
...
Thanks, Volker, for pointing this out.
Guenther
(This used to be commit b47899195e
)
2008-06-25 09:51:31 +02:00
Günther Deschner
07f06eec21
rpc_client: add cli_get_session_key().
...
Guenther
(This used to be commit 93b56755f7
)
2008-06-24 23:47:58 +02:00
Günther Deschner
9a5fc5b5d3
crypto: add decrypt_drsuapi_blob from samba4.
...
Guenther
(This used to be commit 3b6352a60e
)
2008-06-24 23:44:20 +02:00
Günther Deschner
7b1f015675
libads: add ads_connect_user_creds() that won't overwrite given user creds.
...
Guenther
(This used to be commit 026018c9f1
)
2008-06-24 23:37:49 +02:00
Günther Deschner
6b4b76c40e
libads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.
...
Guenther
(This used to be commit b5aaf5aa0f
)
2008-06-24 23:37:40 +02:00
Günther Deschner
640a2972c5
kerberos: add smb_krb5_keytab_name().
...
Guenther
(This used to be commit c273ce8798
)
2008-06-24 23:34:17 +02:00
Günther Deschner
0ac8c5d49a
kerberos: make smb_krb5_kt_add_entry public, allow to pass keys without salting them.
...
Guenther
(This used to be commit 7c4da23be1
)
2008-06-24 23:34:05 +02:00
Volker Lendecke
9ff4001245
Remove "conn" from pipes_struct
...
For spoolss, we need the client's IP address
(This used to be commit 64a4dfaa82
)
2008-06-24 10:31:36 +02:00
Günther Deschner
33000d77e4
time: move uint64s_nt_time_to_unix_abs() to lib/time.c
...
Guenther
(This used to be commit 58f54f180f
)
2008-06-23 23:38:52 +02:00
Andreas Schneider
e5ac03b0ae
Add documentation for kerberos support in libsmbclient.
...
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit fa803ce183
)
2008-06-23 15:36:38 -04:00
Volker Lendecke
13ebf889b3
Remove the "exists" parameter from create_msdfs_link
...
Jeremy, setting "exists" to True in _dfs_Add prevented the initial creation of
a new symlink for me, because the SMB_VFS_UNLINK failed. This also exists in
3.2. I only check it into 3.3 as I would like you to look at it first.
Thanks,
Volker
(This used to be commit f58b098a41
)
2008-06-22 20:45:53 +02:00
Volker Lendecke
65f7457583
Fix a crash in _dfs_Enum
...
(cherry picked from commit 4a99647629
)
(This used to be commit 86cae83a7d
)
2008-06-22 13:08:47 +02:00
Volker Lendecke
df905a5d77
Make pipes_struct its own talloc ctx
...
(This used to be commit 829b1ad469
)
2008-06-21 10:34:34 +02:00
Volker Lendecke
52664f62ba
Remove current_user references from trans2.c
...
This involved replacing the CHECK_NTQUOTA_HANDLE_OK macro by a function.
(This used to be commit 5595cdf837
)
2008-06-19 18:51:38 +02:00
Volker Lendecke
40f5eab5eb
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
...
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e
)
2008-06-19 18:51:37 +02:00
Volker Lendecke
e40b6e296a
Remove the "current_user" arg from fsp_belongs_conn
...
fsp_belongs_conn only used the vuid struct member anyway, and this is available
in the smb_request structure as well.
(This used to be commit 64e9372ab9
)
2008-06-19 18:51:37 +02:00
Volker Lendecke
49ca8efa91
Remove the "current_user" arg from check_fsp
...
check_fsp only used the vuid struct member anyway, and this is available in the
smb_request structure as well.
(This used to be commit 8d364c4c33
)
2008-06-19 18:51:37 +02:00
Derrell Lipman
6398f945e8
Remove prototype of unimplemented smbc_chown() function.
...
(This used to be commit 0e84e3bb80
)
2008-06-18 11:00:46 -04:00
Michael Adam
b172eb1d47
file_access: remove unneeded stat buf parameter from can_access_file_acl().
...
This is a security descriptor level function only.
Michael
(This used to be commit 5931540fa1
)
2008-06-17 23:58:49 +02:00
Günther Deschner
0447e6a0a7
libads: add ads_get_machine_kvno() to make ads_get_kvno() a bit more generic.
...
Guenther
(This used to be commit cb7ace209c
)
2008-06-17 19:54:09 +02:00
Günther Deschner
fd288b4110
clikrb5: remove unrequired create_kerberos_key_from_string_direct() prototype.
...
Guenther
(This used to be commit ec86852fc6
)
2008-06-17 19:51:52 +02:00
Volker Lendecke
9c1f5894a5
Add forgotten protoypes
...
(This used to be commit dee60935d4
)
2008-06-15 18:46:10 +02:00
Volker Lendecke
d49de28f11
Remove the current_user reference from fake_file.c
...
The current vuid is not only available there, it is also in the current
smb_request structure.
(This used to be commit c8fd5eef32
)
2008-06-15 13:37:53 +02:00
Volker Lendecke
de7e6e070a
AIX build fixes from William Jojo -- thanks
...
(cherry picked from commit cb91a47576
)
(This used to be commit 90d7bc6da3
)
2008-06-12 13:17:44 +02:00
Christoph Zauner
8d15371de4
Fix typos.
...
(This used to be commit b2390aa738
)
2008-06-12 09:25:07 +02:00
Kai Blin
4d9748e44d
net: Move includes to net.h
...
(This used to be commit 1943e2752d
)
2008-06-10 09:45:09 +02:00
Volker Lendecke
aeb9eb85eb
Fix the compile on NetBSD -- readlink and read are macros there
...
(cherry picked from commit 435b80a9a2
)
(This used to be commit 055bb54fa6
)
2008-06-09 15:01:42 +02:00
Volker Lendecke
d1e0c7f0c1
Add STREAMINFO op to vfs_full_audit
...
Fix Coverity ID 552 and 553
(This used to be commit c46e10d260
)
2008-06-07 09:04:03 +02:00
Volker Lendecke
e252b0504a
Add prototype for delete_negative_conn_cache
...
(This used to be commit 097446c3c8
)
2008-06-07 08:16:23 +02:00
Günther Deschner
d4c5a1d504
util_str: add talloc_asprintf_strlower_m().
...
Guenther
(This used to be commit 7f8b0b4d15
)
2008-06-04 01:35:43 +02:00
Günther Deschner
4f6ea219d6
build: fix the build (missing protoype for lp_ldap_connection_timeout()).
...
Guenther
(This used to be commit 06b597213a
)
2008-06-03 20:41:29 +02:00
Björn Jacke
d8b234648c
Add ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be controlled via the ldap connection timeout parameter. This fixes fallbacks to secondary LDAP servers in multi LDAP server setups like in #4544
...
(This used to be commit 8e59a2fedc
)
2008-06-03 16:32:31 +02:00
Günther Deschner
39101acba5
errors: add more WERRORs.
...
Guenther
(This used to be commit 973de861c9
)
2008-06-03 01:27:44 +02:00
Günther Deschner
ff7b8bcebf
doserr: Add WERR_GROUP_EXISTS and WERR_SPECIAL_ACCOUNT.
...
Guenther
(This used to be commit 058cf7001e
)
2008-06-03 01:27:40 +02:00
Jeremy Allison
d36434f312
Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
...
can result in a buffer overrun.
Jeremy.
(This used to be commit 23b825e9d2
)
2008-05-28 09:31:42 -07:00
Günther Deschner
611072fc1c
Fix Bug #5285 . (libcap header mismatch)
...
Can someone with gpfs available test this ? The only codepath using this
function is the modules/gpfs.c module. The fix resolves at least the build
issues Samba has with recent kernel / libcap versions by using the portable
cap_get_proc()/cap_set_proc() interface (instead of using capget/capset).
Guenther
(This used to be commit 1779551412
)
2008-05-28 13:22:52 +02:00
Michael Adam
af6e91e0b3
fix build: add missing prototype of msg_close_file()
...
Michael
(This used to be commit 1a6f91755c
)
2008-05-28 01:10:54 +02:00
Michael Adam
22174515e1
fix the build after prototype change.
...
Michael
(This used to be commit d96634d037
)
2008-05-28 01:10:54 +02:00
Günther Deschner
95d873ac1f
build: Fix the build after prototype change.
...
Guenther
(This used to be commit 68327e577d
)
2008-05-28 00:53:04 +02:00
Jeremy Allison
6811dc3fc2
Allow server manager to close open files selected by id.
...
Jeremy.
(This used to be commit 7eeed8bb41
)
2008-05-27 11:25:46 -07:00
Günther Deschner
372a6c0360
doserr: add WERR_REVISION_MISMATCH.
...
Guenther
(This used to be commit 017ad275e5
)
2008-05-27 11:01:30 +02:00