summaryrefslogtreecommitdiffstats
path: root/source3/auth/auth_server.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:auth_server: make use of cli_state_protocol()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* Fix bug 8314] - smbd crash with unknown user.Jeremy Allison2011-07-231-4/+11
| | | | | | | | | All other auth modules code with being called with auth_method->private_data being NULL, make the auth_server module cope with this too. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jul 23 02:55:01 CEST 2011 on sn-devel-104
* s3:auth_server: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-6/+7
| | | | metze
* s3:auth_server: use cli_echo() to check if the server is aliveStefan Metzmacher2011-07-111-5/+10
| | | | | | | This works over port 139 and also 445. send_keepalive() would only work on port 139. metze
* s3:auth_server: make use of cli_state_is_connected()Stefan Metzmacher2011-07-111-3/+3
| | | | metze
* s3:auth_server: use cli->is_guestlogin instead of parsing cli->inbuf.Stefan Metzmacher2011-07-081-1/+1
| | | | | | cli->inbuf is not the valid response buffer of the session setup response. metze
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-2/+2
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3: Use the correct guest_login field in auth_serverVolker Lendecke2011-05-291-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 13:57:21 CEST 2011 on sn-devel-104
* s3: Use cli_connect_nb in auth_serverVolker Lendecke2011-05-291-16/+4
|
* s3: Fix a type-punned warningVolker Lendecke2011-05-291-1/+1
|
* s3: Check password server loop earlierVolker Lendecke2011-05-291-4/+6
| | | | We do that in the loop for the ip address anyway
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-061-1/+1
|
* s3-auth: use auth.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: auth also needs parts of smbd.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Fix Coverity ID 2188: MISSING_BREAKVolker Lendecke2011-03-271-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 27 23:11:10 CEST 2011 on sn-devel-104
* s3: Avoid a few calls to cli_errstrVolker Lendecke2011-01-171-3/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 17 08:47:25 CET 2011 on sn-devel-104
* Remove fstring from map_username. Create a more sane interface than the ↵Jeremy Allison2010-11-101-4/+5
| | | | | | called-parameter-is-modified. Jeremy.
* s3: Remove smb_pam_accountcheck from the auth modulesVolker Lendecke2010-08-191-9/+1
| | | | | We go through the same check in auth/auth.c line 287 after the module has done its job. So we don't have to do that check twice.
* s3:auth Add error paths for invalid password_state valuesAndrew Bartlett2010-08-141-0/+3
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:auth Make Samba3 use the new common struct auth_usersupplied_infoAndrew Bartlett2010-08-141-12/+14
| | | | | | | | | | | | | This common structure will make it much easier to produce an auth module for s3compat that calls Samba4's auth subsystem. In order the make the link work properly (and not map twice), we mark both that we did try and map the user, as well as if we changed the user during the mapping. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:misc make use of server_[event/messaging]_context directlyAndreas Schneider2010-06-101-1/+1
| | | | | Untangle these functions from smbd specific dependencies so they can be freely used in multiple servers.
* s3:auth Rename user_info->domain -> user_info->mapped.domain_nameAndrew Bartlett2010-06-071-5/+5
| | | | | | | This is closer to the structure I want for a common struct auth_usersupplied_info. Andrew Bartlett
* s3:auth Rename user_info->internal_username -> user_info->mapped.account_nameAndrew Bartlett2010-06-071-2/+2
| | | | | | | This is closer to the structure I want for a common struct auth_usersupplied_info. Andrew Bartlett
* s3:auth Rename user_info->smb_name -> user_info->client.account_nameAndrew Bartlett2010-06-071-2/+2
| | | | | | | This is closer to the structure I want for a common struct auth_usersupplied_info. Andrew Bartlett
* s3:auth make it easier to trace auth modulesSimo Sorce2010-05-291-0/+2
|
* s3: Remove the make_auth_methods routineVolker Lendecke2010-04-111-4/+9
| | | | This was just TALLOC_ZERO_P
* s3: Make "auth_context" its own talloc parentVolker Lendecke2010-04-111-1/+1
| | | | Remove "mem_ctx" from "struct auth_context"
* s3: Fix some nonempty linesVolker Lendecke2010-04-111-6/+6
|
* s3: Remove the typedef for "auth_serversupplied_info"Volker Lendecke2010-01-101-1/+1
|
* s3: Remove the typedef for "auth_usersupplied_info"Volker Lendecke2010-01-101-1/+1
|
* Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison2009-07-281-1/+1
| | | | | | | | | | W2K3 DC's can have IPv6 addresses but won't serve krb5/ldap or cldap on those addresses. Make sure when we're asking for DC's we prefer IPv4. If you have an IPv6-only network this prioritizing code will be a no-op. And if you have a mixed network then you need to prioritize IPv4 due to W2K3 DC's. Jeremy.
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-3/+6
|
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-231-1/+1
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* Fix various build warningsZach Loafman2008-07-221-1/+1
| | | | | | This fixes various build warnings on our platform. I'm sure I haven't caught them all, but it's a start. (This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
* Fix security=server, bug 5502Volker Lendecke2008-05-301-2/+4
| | | | | | | | | This has brown paper bag quality and is definitely needed for 3.2.0. Thanks to Orion Poplawski for reporting this! Volker (This used to be commit 3b31f8cce3703645a57778bc752bc9b9e853df5d)
* Use a separate tdb for mutexesVolker Lendecke2008-03-101-7/+9
| | | | | | | | Another preparation to convert secrets.c to dbwrap: The dbwrap API does not provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC mutex is needed per-node anyway, so it is perfectly fine to use a local mutex only. (This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
* Fix CID 460 - resource leak on error.Jeremy Allison2008-01-081-0/+1
| | | | | Jeremy. (This used to be commit d61831164b482d02e0eef3c28aeed93d3e44433f)
* Remove another static string and static passwd.Jeremy Allison2007-12-161-19/+22
| | | | | Jeremy. (This used to be commit 2a700c5a57a417add3b1975b2c396d20c8a5f301)
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-17/+22
| | | | | | No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-5/+5
| | | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-9/+4
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.Jeremy Allison2007-10-101-1/+6
| | | | | | Long overdue fix.... Jeremy. (This used to be commit 073fdc5a58139796dbaa7ea9833dca5308f11282)
* r22956: Fix security=server (bug #4622). Volker's patchJeremy Allison2007-10-101-6/+0
| | | | | | (slightly truncated by me). Will be in 3.0.25a. Jeremy. (This used to be commit 039fb906af883a7ca1a68955f1b36b583fe1b698)