[erlang-bugs] Add default LDAP schemes to http_uri

Drew Varner drew.varner@REDACTED
Mon Apr 1 21:10:23 CEST 2013


Is it reasonable to add ldap default ports to http_uri [1] since eldap is in Erlang? I have been fiddling with a module to fetch CRLs. I need to parse URIs for LDAP CRL distribution points.

[1] https://github.com/erlang/otp/blob/maint/lib/inets/src/http_lib/http_uri.erl#L76

change to…

scheme_defaults() ->
    [{http,  80}, 
     {https, 443}, 
     {ftp,   21}, 
     {ssh,   22}, 
     {sftp,  22}, 
     {tftp,  69},
     {ldap,  389}, 
     {ldaps,  636}].


Thanks,
Drew



More information about the erlang-bugs mailing list