1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

24200 Commits

Author SHA1 Message Date
Günther Deschner
fb2c13fe19 Add static libnetapi_ctx.
Guenther
(This used to be commit 97449ea341)
2007-12-21 15:29:10 +01:00
Günther Deschner
d14ee1dc08 Use full string based debug_parse_levels in libnetapi.
Guenther
(This used to be commit 78d8f0e41a)
2007-12-21 15:29:10 +01:00
Günther Deschner
c9b44e0fc3 Add basic credential functions for libnetapi.
Guenther
(This used to be commit 7c38f706b5)
2007-12-21 15:29:10 +01:00
Günther Deschner
3d853b8e7e Move basic libnetapi functions to NET_API_STATUS.
Guenther
(This used to be commit 086c550059)
2007-12-21 15:29:10 +01:00
Günther Deschner
4dd84b3511 Define NET_API_STATUS to be just a uin32_t.
Guenther
(This used to be commit a42850926a)
2007-12-21 15:29:10 +01:00
Günther Deschner
9dc0ac4637 Getting rid of external credentials in libnetapi.
Guenther
(This used to be commit c10481dba0)
2007-12-21 15:29:10 +01:00
Günther Deschner
c5a84374b6 Make sure we also support non-domain join.
Guenther
(This used to be commit c818f5505a)
2007-12-21 15:29:10 +01:00
Günther Deschner
41410c86cc Some libnet and netapi build fixes.
Guenther
(This used to be commit 1d47247283)
2007-12-21 15:29:10 +01:00
Günther Deschner
5b5f75d229 Fill in local branch of NetGetJoinInformation().
Guenther
(This used to be commit 46db875451)
2007-12-21 15:29:10 +01:00
Günther Deschner
7482a18c83 More minor libnetapi fixes.
Guenther
(This used to be commit 9f129c069f)
2007-12-21 15:29:10 +01:00
Günther Deschner
749f699f87 Build fixes for libnetapi.
Guenther
(This used to be commit 07d33557b9)
2007-12-21 15:29:10 +01:00
Günther Deschner
5799dcdfed Add _wkssvc_NetrJoinDomain2() server.
Guenther
(This used to be commit 9b0423e7d9)
2007-12-21 15:29:10 +01:00
Günther Deschner
4f6e8dfa51 Fill in NetJoinDomainLocal().
Guenther
(This used to be commit 4896f22bb5)
2007-12-21 15:29:10 +01:00
Günther Deschner
5bf7319ac4 Add libnet_Join().
Heavily based on existing code in net_ads_join().

Guenther
(This used to be commit fb6315b68b)
2007-12-21 15:29:10 +01:00
Günther Deschner
913d220e0b Add libnet_JoinCtx structure.
Guenther
(This used to be commit 13c46b1407)
2007-12-21 15:29:09 +01:00
Günther Deschner
67aa44e7a2 Split NetJoinDomain() into NetJoinDomainRemote() and the unsupported
NetJoinDomainLocal().

Guenther
(This used to be commit d2f21ce672)
2007-12-21 15:29:09 +01:00
Günther Deschner
1b5c1ae742 Very quick conversion of net_conf functions into the libnet_conf layer.
Certainly needs cleanup later.

Guenther
(This used to be commit 2b41ac926d)
2007-12-21 15:29:09 +01:00
Günther Deschner
8edf48bbf7 For the fun of it, build netapi.so|.a.
Guenther
(This used to be commit 8cbc6bdede)
2007-12-21 15:29:09 +01:00
Günther Deschner
72ffac3990 Add NetGetJoinInformation().
Guenther
(This used to be commit d341d251d6)
2007-12-21 15:29:09 +01:00
Günther Deschner
c000a16645 Add get_friendly_werror_msg().
Guenther
(This used to be commit b1ad3def98)
2007-12-21 15:28:21 +01:00
Günther Deschner
8ded1df767 Kill fstring in getdcname & getanydcname return.
Guenther
(This used to be commit b738381816)
2007-12-21 15:12:40 +01:00
Günther Deschner
574354a7ec Use ADS_IGNORE_PRINCIPAL define.
Guenther
(This used to be commit 763e13315f)
2007-12-21 14:13:55 +01:00
Volker Lendecke
4418b989e7 Fix the build on Solaris
(This used to be commit 5f5e52ba7b)
2007-12-21 12:53:12 +01:00
Volker Lendecke
99b86e4a26 Some C++ fixes
(This used to be commit 5c392c4c6e)
2007-12-21 09:58:21 +01:00
Volker Lendecke
addf598cde Some C++ warnings
(This used to be commit 5ab82d4f57)
2007-12-21 09:58:20 +01:00
Volker Lendecke
eeb92cedde Fix a C++ warning
(This used to be commit c31c7e3e24)
2007-12-21 09:58:20 +01:00
Volker Lendecke
dea7d2223d Fix a C++ warning
(This used to be commit 7e1d9b561f)
2007-12-21 09:58:20 +01:00
Volker Lendecke
0cdf5cfdfb Fix a missing prototype warning
(This used to be commit 93e5de23e7)
2007-12-21 09:58:20 +01:00
Volker Lendecke
184c927bf5 Remove some statics from md4.c
(This used to be commit 7e193c68b2)
2007-12-21 09:58:20 +01:00
Volker Lendecke
89f7883fe9 Add a singleton cache
First user is yp_default_domain
(This used to be commit c19363eb77)
2007-12-21 09:58:20 +01:00
Volker Lendecke
0565bc7335 Make data_blob_string_const return null terminated strings
... nobody was using it, so we're free to change it now :-)
(This used to be commit 4b06c68482)
2007-12-21 09:58:20 +01:00
Volker Lendecke
bea1659911 Remove next_token_nr_talloc and its associated global
Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
(This used to be commit 86d9412611)
2007-12-21 09:58:20 +01:00
Volker Lendecke
44d086a15f Convert the pwnam cache to memcache
(This used to be commit 032c5589fe)
2007-12-21 09:58:20 +01:00
Volker Lendecke
d3d870cc07 Add memcache_add_talloc
The first memcache API only had blobs, but we have quite a few objects that are
more complex talloc'ed structues. The current one I'm looking at is the
getpwnam cache, but there are others around.
(This used to be commit ea0e5ad9a1)
2007-12-21 09:58:20 +01:00
Volker Lendecke
cc48010f41 Add a global cache
It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
(This used to be commit c131d0dc52)
2007-12-21 09:58:20 +01:00
Herb Lewis
df133758c2 fix dump printout when byte >= 0x80
(This used to be commit e18fab269c)
2007-12-20 14:57:29 -08:00
James Peach
4c3c483fbf Fix typo in filesystem capabilities bits.
(This used to be commit 08fee0d28a)
2007-12-20 08:31:27 -08:00
Volker Lendecke
8804f5bdd7 Attempt to fix the build
James, at least on my Linux system neither FILE_CASE_SENSITIVE_SEARCH nor
FILE_CASE_PRESERVING_NAMES seem to be defined anywhere. Is it possible that
this is a MacOS/X specific thing? If so, could you add configure tests for
this?

Thanks,

Volker
(This used to be commit 465fd43850)
2007-12-20 10:33:13 +01:00
James Peach
a32329297d Remove unused variable 'didmsg'.
(This used to be commit 5de89dd6e0)
2007-12-19 22:39:40 -08:00
James Peach
2ee96c7ee3 Fix a couple of warnings in mDNS registration. One of these is an
actual bug where we pass a pointer instead of a pointer to a pointer.
(This used to be commit 36db675510)
2007-12-19 22:33:43 -08:00
James Peach
2403b319a7 Add filesystem capabilities bitmask to statfs info.
This patch adds Darwin support for the Samba statfs VFS call. It
also adds a filesystem capabilities bitmask to the information
returned by the call.
(This used to be commit 555173eb3f)
2007-12-19 22:20:39 -08:00
James Peach
26b75f2d83 Expose per-fsp extension talloc context.
This patch supplements the fsp extension API with an operation to
retrieve the malloc zone pointer for that fsp.
(This used to be commit d5d9e4084c)
2007-12-19 22:20:09 -08:00
James Peach
d2a9630a8b Release per-fsp data on file closure.
(This used to be commit 9fead46b54)
2007-12-19 22:19:55 -08:00
Michael Adam
e3bb148b94 Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
This essentially re-establishes r14496 (2155bb0535)
which was undone in r17723 (43bd8c00ab) for
reasons that are unclear to me. Maybe I am being too naive.

Now we do again only retrieve the password policy when called from
the pam_winbind module. This fixes logons delegated to AD trusted
domain controllers: We need to connect to the sam to retrieve the
password policy. But auhtenticated session setup is not possible
when contacting the trusted domain dc and afterwards, SamrConnect
also fails with whatever credentials and method used.

Michael
(This used to be commit 6d765e0de5)
2007-12-20 02:05:55 +01:00
Michael Adam
233eb0e560 Change the prototype of the vfs function get_nt_acl().
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.

This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.

Michael
(This used to be commit b5f600fab5)
2007-12-19 23:08:01 +01:00
Michael Adam
9460dfc933 Prepare the afs acl module for the api change in get_nt_acl().
This makes both of afsacl_[f]get_nt_acl() more specific,
eliminating the need for afs_get_nt_acl(). Instead, split
afs_to_nt_acl.

Michael
(This used to be commit 15caf58c81)
2007-12-19 23:08:00 +01:00
Michael Adam
aca40f29d5 Prepare the aix2 acl module for the api change in get_nt_acl().
This makes both of aixjfs2_[f]get_nt_acl() more specific,
eliminating the need for aixjfs2_get_nt_acl_common().

Michael
(This used to be commit 36e2a814ba)
2007-12-19 23:08:00 +01:00
Michael Adam
fcee8ccdcd Change aixjfs2_get_nfs4_acl() to take file name instead of fsp.
In preparation of the api change in api change in get_nt_acl().

Michael
(This used to be commit 40a1438e17)
2007-12-19 23:08:00 +01:00
Michael Adam
65b3065a4b Fix two debug statements: Add missing printf parameter.
Michael
(This used to be commit 1c4f74551f)
2007-12-19 23:07:59 +01:00
Michael Adam
35f13ae589 Reformatting: wrap long lines and remove trailing spaces.
Michael
(This used to be commit f6db5a0d05)
2007-12-19 23:07:59 +01:00