aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ldap.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-08UATs could be put into "categories". The categories were defined onlyGuy Harris1-2/+4
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. svn path=/trunk/; revision=43603
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-04Get rid of a couple of warnings.Anders Broman1-5/+5
svn path=/trunk/; revision=43064
2012-06-04Get rid of a couple of warnings.Anders Broman1-266/+266
svn path=/trunk/; revision=43057
2012-05-28Sometimes you might have plaintext LDAP for a SASL LDAP connection if the ↵Ronnie Sahlberg1-0/+6
handshake never occured. Observed with exchange in some configurations. From Matthieu Patou <mat@matws.net> svn path=/trunk/; revision=42875
2012-05-08Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-40/+38
svn path=/trunk/; revision=42514
2012-05-08Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-3/+3
proto_tree_add_item() calls. Update the RFC number for LDAP. svn path=/trunk/; revision=42493
2012-05-03Fix Coverity CID 280809 (formerly CID 809): Uninitialized scalar variable.Chris Maynard1-3/+4
svn path=/trunk/; revision=42399
2012-04-10Fix #7056 + Remove mechanism global, unused variable.Jakub Zawadzki1-5/+26
svn path=/trunk/; revision=42008
2012-04-10Propagate ↵Anders Broman1-3/+3
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42005 to template file. svn path=/trunk/; revision=42006
2012-04-10This should be enough to make buildbot happy (bug #7054)Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=42005
2012-03-30Adjusted UAT name.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=41844
2012-03-30Added support for configuring custom LDAP AttributeValue types.Stig Bjørlykke1-40/+205
svn path=/trunk/; revision=41841
2012-03-29Don't try to convert AttributeValue to string if having a ldap_name dissector.Stig Bjørlykke1-46/+42
Prefix the converted printable string correctly with 'AttributeValue: '. svn path=/trunk/; revision=41823
2012-03-02Remove now unused variables.Anders Broman1-4/+3
svn path=/trunk/; revision=41319
2012-03-02Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-7/+6
svn path=/trunk/; revision=41298
2011-11-20Get rid of Warnings.Anders Broman1-31/+31
svn path=/trunk/; revision=39954
2011-10-15Update generated ASN1 *.[hc] files after recent work done by Jeff Morriss;Bill Meier1-1/+1
The only change in each file is in a comment showing the asn2wrs cmd used to build that file. svn path=/trunk/; revision=39427
2011-10-10Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1/*:Bill Meier1-2/+2
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_IPv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39332
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 ↵Bill Meier1-6/+6
dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39294
2011-05-13Regenerate ASN.1 dissectors to update the #line directive.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=37118
2011-04-21From Stefan Metzmacher and Gregor Beck via ↵Jeff Morriss1-5/+34
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5850 : The smallest LDAP PDU is 7 bytes, not 4. svn path=/trunk/; revision=36777
2011-04-11Regenerate the ANSI MAP, LDAP, and TETRA dissectors so that Coverity canGerald Combs1-58/+58
locate their template files. svn path=/trunk/; revision=36569
2011-03-14Properly initialize our filter counters.Gerald Combs1-27/+31
svn path=/trunk/; revision=36190
2011-03-01If we encounter an excessively long filter string or one with too manyGerald Combs1-16/+33
elements, add an expert item and throw a ReportedBoundsError. We may want to handle this more cleanly in the future but this avoids allocating a huge amount of memory. svn path=/trunk/; revision=36101
2011-02-23Split get_dns_name() into get_dns_name() and expand_dns_name().Gerald Combs1-62/+18
In dissect_ms_compressed_string() dissect_mscldap_string() simply call expand_dns_name() instead of using duplicate (and insecure) code. This *might* break CLDAP and SMB dissection. If that's the case we should probably revert get_dns_name() and simplify expand_dns_name(). Fixes infinite recursion errors found by joernchen of Phenoelit. svn path=/trunk/; revision=36029
2011-02-10Declare ett's as gint, not guint.Chris Maynard1-1/+1
svn path=/trunk/; revision=35902
2011-01-11ldap.cnf:782: warning: ISO C90 forbids mixed declarations and codeAnders Broman1-1/+1
svn path=/trunk/; revision=35476
2011-01-11From Matthieu Patou <mat@samba.org>Ronnie Sahlberg1-22/+94
Dissect LDAP DirSyncFlags to show the bits of this bitmap. svn path=/trunk/; revision=35474
2011-01-06More misc. CLDAP improvements for Active Directory including updatingStephen Fisher1-36/+48
field names and adding descriptions, changing the Domain GUID in the "LDAP ping" response to a FT_GUID instead of FT_BYTES, etc. svn path=/trunk/; revision=35407
2011-01-06More minor cleanup/fixes for MS Active Directory's use of CLDAP.Stephen Fisher1-26/+19
svn path=/trunk/; revision=35404
2011-01-06Minor corrections to NtVer dissection for NETLOGON_NT_VERSION Options BitsStephen Fisher1-72/+75
in MSCLDAP packets per Microsoft's MS-ADTS specification, section 7.3.1.1, revision 26 (11/19/2010). Also re-format code a bit. svn path=/trunk/; revision=35403
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-6/+6
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-12-06Make some prefs callback functions static. (These modules don't use ↵Jeff Morriss1-2/+4
proto_reg_handoff_*() as their prefs callback.) svn path=/trunk/; revision=35138
2010-09-21The CLDAP attribute value on a CLDAP reply is no longer being decodedAnders Broman1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5239 It got broken in Revision 33390 I think, if attr_type is unset at this point it should be set in the calling function. http://anonsvn.wireshark.org/viewvc/trunk/asn1/ldap/ldap.cnf?r1=33388&r2=33390 svn path=/trunk/; revision=34176
2010-07-01Initialize more variables.Gerald Combs1-2/+2
svn path=/trunk/; revision=33392
2010-06-30Initialize a variable.Gerald Combs1-29/+31
svn path=/trunk/; revision=33390
2010-06-30Initialize a variable.Gerald Combs1-10/+11
svn path=/trunk/; revision=33388
2010-06-27Initialize attributedesc_string in a couple of places so that weGerald Combs1-21/+19
don't end up trying to use an invalid pointer. svn path=/trunk/; revision=33341
2010-05-13Use find_or_create_conversation() in some ASN.1 dissectorsJeff Morriss1-19/+7
svn path=/trunk/; revision=32791
2010-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-32/+32
- Change spaces in the name to underscores before comparing it to the blurb. - Check if the type simply as T_ prepended to the name. - Don't put in a blurb of "NULL". and regenerate the dissectors. svn path=/trunk/; revision=32748
2010-05-11Regenerate a few more of the ASN.1 dissectorsJeff Morriss1-143/+143
svn path=/trunk/; revision=32744
2010-04-06#include <stdio.h> not needed.Bill Meier1-7/+6
svn path=/trunk/; revision=32405
2010-02-23Try to fix compilation with MSVC.Anders Broman1-6/+6
Please review. svn path=/trunk/; revision=31962
2010-02-23Squelch a bunch of compiler warnings.Guy Harris1-23/+23
svn path=/trunk/; revision=31961
2010-01-25Export the dissect_mscldap_string() that is used to dissectRonnie Sahlberg1-1/+1
compressed dns strings. svn path=/trunk/; revision=31650
2010-01-17Get rid of check_col();Anders Broman1-60/+51
svn path=/trunk/; revision=31552
2009-12-24Add NULL pointer checks. Fixes the fuzz crash in bug 4351.Gerald Combs1-1/+1
svn path=/trunk/; revision=31362
2009-12-12From Mathieu Parent:Jaap Keuter1-48/+126
As defined in rfc4511 [Lightweight Directory Access Protocol (LDAP): The Protocol], see the attached patch that dissects IntermediateMessage. svn path=/trunk/; revision=31251
2009-12-09From Mathieu Parent:Gerasimos Dimitriadis1-49/+339
Dissector for LDAP Content Synchronization Operation (Modified in order to remove the unneeded oid_add_from_string's) https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4309 svn path=/trunk/; revision=31218