summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
Commit message (Collapse)AuthorAgeFilesLines
* the first cut of the internal messaging system.Andrew Tridgell2000-09-111-8/+0
| | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.
* Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.Jeremy Allison2000-09-011-3/+3
| | | | Jeremy.
* Updated file with version in TNG.Tim Potter2000-08-251-2/+3
|
* Added code to do SID to uid/gid conversion. Needed for ACL support.Jeremy Allison2000-08-231-10/+178
| | | | Jeremy.
* Started to canonicalize our handling of uid -> sid code in order toJeremy Allison2000-08-021-23/+83
| | | | | | | | | | | | | | | | | | | | | | | | | get ready and fix se_access_check(). Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid() functions that look via winbind first the fall back on local lookup. All Samba should use these rather than trying to call winbindd code directly. Added NT_USER_TOKEN struct in user_struct, contains list of NT sids associated with this user. se_access_check() should use this (cached) value rather than attempting to do the same thing itself when given a uid/gid pair. More work needs to be done to preserve these things accross security context changes (especially with the tricky pipe problem) but I'm beginning to see how this will be done..... probably by registering a new vuid for an authenticated RPC pipe and not treating the pipe calls specially. More thoughts needed - but we're almost there... Jeremy.
* Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel2000-07-191-4/+2
| | | | | | | | | | | | | | | | | | string), the wins_srv module now hands back a struct in_addr when it's called. It caches the IP address once it has been looked up. The IP is cleared (and must be looked up again) if the 'wins server' parameter is reread, or if the node is marked 'dead'. A dead node will not be re-tried for 10 minutes (per a #define in wins_srv.c). As it was, the code was reading the WINS server name or IP directly from lp_wins_server. That's okay, except that if the value was expressed as a name, then a DNS lookup would be done every time the client wanted to talk to the server. I still need to work out the implications of failover regarding the 'unicast subnet' list. Chris -)-----
* First cut toward adding WINS server failover.Christopher R. Hertel2000-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | *Note: failover doesn't actually work yet!* It's just that the code I'm adding provides all of the pieces necessary. I do have one big question. Something that I'll have to ask Jeremy, I'm thinkin'. In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to set up the Unicast subnet. ...so what happens if the WINS server changes? My guess is either: a) nothing. b) I'd have to change the unicast subnet entry whenever the WINS server changes. Urq. BTW, the lp_wins_server() function no longer returns the WINS server name or IP. It returns the list of WINS servers entered in smb.conf. To get the currently 'live' WINS server, use the wins_srv() function. Fun, eh? Chris -)-----
* Renamed a parameter in init_request() function.Tim Potter2000-07-171-10/+19
| | | | Initialise response structure correctly.
* Add local fallback for name lookup if no winbindd running...Jeremy Allison2000-07-111-9/+20
| | | | Jeremy.
* Moved winbind client functions from various odd locations toTim Potter2000-07-103-9/+224
| | | | | | nsswitch/wb_client.c Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG.
* Merge of wbinfo program from TNG.Tim Potter2000-07-052-1/+412
|
* Renamed generic_request() to winbindd_request()Tim Potter2000-07-031-3/+3
|
* Merge from TNG.Tim Potter2000-06-302-191/+206
|
* Fixes for IRIX kernel oplocks and systems that don't have nss.hJeremy Allison2000-06-201-0/+10
| | | | Jeremy.
* Merge from TNG.Tim Potter2000-06-142-55/+157
|
* moved secrets handling into secrets.cAndrew Tridgell2000-06-031-30/+5
|
* While we're all making incompatible tdb changes, I changed the implementationTim Potter2000-05-122-4/+5
| | | | | | | | | of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent.
* use "winbind separator" in tng as wellAndrew Tridgell2000-05-125-8/+14
|
* - changed smb_getpwnam() to use winbind style usernamesAndrew Tridgell2000-05-101-10/+10
| | | | - finished ntdom -> winbind rename in head
* in head as well ...Andrew Tridgell2000-05-104-7/+7
| | | | | renamed ntdom to winbind I think that using winbind in /etc/nsswitch.conf is better than ntdom
* treat a blank "password server =" line as a "*" if in domain securityAndrew Tridgell2000-05-101-4/+18
|
* more merging voodooAndrew Tridgell2000-05-101-0/+7
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* more mergingAndrew Tridgell2000-05-101-1/+0
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* fixed some winbind cache bugsAndrew Tridgell2000-05-091-16/+17
|
* brought the winbindd code into headAndrew Tridgell2000-05-0914-0/+4802
| | | | this does not yet compile, but I'm working on that.
* remove scope parameter here tooAndrew Tridgell2000-01-071-3/+3
|
* added basic nsswitch support - this allows you to use a "wins" entryAndrew Tridgell1999-12-172-0/+142
in a /etc/nsswitch.conf hosts line. Only tested on RH6.1, but should work on a broad range of Linux distributions. It could probably be made to work with Solaris pretty easily. It does not build by default. Build it with "make nsswitch"