summaryrefslogtreecommitdiff
path: root/libcli/security/dom_sid.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Make dom_sid_parse_endp init "endp" on all "ok" pathsVolker Lendecke2016-12-061-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4: Fix bad review I did in dom_sid_parse_length() code.Jeremy Allison2015-04-291-1/+2
| | | | | | | | | | | | Volker, apologies for the mistake. Spotted by Andrew Bartlett <abartlet@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Apr 29 08:20:23 CEST 2015 on sn-devel-104
* lib: Simplify dom_sid_parse_lengthVolker Lendecke2015-04-281-8/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libcli: Add a NULL check in dom_sid_stringVolker Lendecke2014-06-101-0/+3
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jun 10 21:46:15 CEST 2014 on sn-devel-104
* libcli: fix conversion logic in dom_sid_string_bufJeff Layton2013-07-311-10/+18
| | | | | Signed-off-by: Jeff Layton <jlayton@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libcli: fix conversion logic in dom_sid_parse_endpJeff Layton2013-07-311-14/+15
| | | | | Signed-off-by: Jeff Layton <jlayton@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Tiny simplification to dom_sid_string_bufVolker Lendecke2011-05-311-2/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 31 23:16:31 CEST 2011 on sn-devel-104
* Add dom_sid_parse_endpVolker Lendecke2011-04-131-2/+12
| | | | | | | This returns a pointer to the first non-parsed character, along the lines of strtoul for example. Signed-off-by: Jeremy Allison <jra@samba.org>
* Add dom_sid_string_bufVolker Lendecke2011-03-031-12/+37
| | | | | This prints into a fixed buffer with the same overflow semantics as snprintf has: Return required string length, regardless of whether it fit or not.
* libcli/auth Merge source4/libcli/security and util_sid.c into the common codeAndrew Bartlett2010-10-141-2/+2
| | | | | | | | | This should ensure we only have one copy of these core functions in the tree. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli: add dom_sid_compare_domain()Günther Deschner2010-09-201-0/+18
| | | | Guenther
* Fix string_to_sid() to allow non '\0' termination of the string - allowsJeremy Allison2010-09-141-11/+6
| | | | | | string_to_sid() to be used in formatted strings like FOO/S-1-5-XXXX-YYYY/BAR. Jeremy.
* libcli/security Use sid_append_rid() in dom_sid_append_rid()Andrew Bartlett2010-09-141-5/+5
| | | | | | | This ensures that the maximum number of sub-authorities is respected, otherwise we may run off the end of the array. Andrew Bartlett
* libcli/security Merge source3/ string_to_sid() to common codeAndrew Bartlett2010-09-141-37/+92
| | | | | | | | The source3 code repsects the limit of a maximum of 15 subauths, while the source4 code does not, creating a security issue as we parse string-form SIDs from clients. Andrew Bartlett
* Change uint_t to unsigned int in libcliMatt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Revert "libcli/security: Remove a call to strncasecmp"Volker Lendecke2010-01-251-1/+5
| | | | This reverts commit 7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.
* Revert "libcli/security: Convert some strtol calls to strtoul"Volker Lendecke2010-01-251-2/+2
| | | | This reverts commit 7fe66e06c4df575c410d4d70ff38f120c2f4363b.
* Revert "libcli/security: Fix a valgrind error in dom_sid_parse"Volker Lendecke2010-01-251-4/+0
| | | | This reverts commit f1c889a4e61d6d751cbabd8014b4345b8051b97c.
* Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"Volker Lendecke2010-01-251-13/+0
| | | | | | This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d. Apparently this breaks the build of Samba4
* libcli/security: Prohibit SID formats like S-1-5-32-+545Volker Lendecke2010-01-231-0/+13
|
* libcli/security: Fix a valgrind error in dom_sid_parseVolker Lendecke2010-01-231-0/+4
|
* libcli/security: Convert some strtol calls to strtoulVolker Lendecke2010-01-231-2/+2
| | | | | This tightens the dom_sid_parse syntax check a bit: "--" would have been allowed in sid string
* libcli/security: Remove a call to strncasecmpVolker Lendecke2010-01-231-5/+1
|
* Add missing include to shut up missing prototype warningsVolker Lendecke2009-02-141-0/+1
|
* s3: Fix the non-merged build.Kai Blin2009-02-011-1/+0
|
* shared: Move dom_sid_* utility functions to top levelKai Blin2009-02-011-0/+312