@@ -342,7 +342,7 @@ func readResponse(headers http.Header, body []byte) ([]byte, error) {
342342 return body [start + 4 :], nil
343343}
344344
345- //Authenticate is used to create the MAPI session, get's session cookie ect
345+ //Authenticate is used to create the MAPI session, get's session cookie etc
346346func Authenticate () (* RopLogonResponse , error ) {
347347 if AuthSession .Transport == RPC {
348348 return AuthenticateRPC ()
@@ -386,7 +386,7 @@ func AuthenticateRPC() (*RopLogonResponse, error) {
386386 return nil , & TransportError {fmt .Errorf ("An error occurred setting up RPC. %s" , err )}
387387 }
388388
389- utils .Trace .Println ("User DN: " , string (connRequest .UserDN ))
389+ utils .Trace .Printf ("User DN: %s " , string (connRequest .UserDN ))
390390 utils .Trace .Println ("Got Context, Doing ROPLogin" )
391391
392392 AuthSession .UserDN = append ([]byte (AuthSession .LID ), []byte {0x00 }... )
@@ -419,7 +419,7 @@ func AuthenticateHTTP() (*RopLogonResponse, error) {
419419 connResponse .Unmarshal (responseBody )
420420
421421 if connResponse .StatusCode == 0 {
422- utils .Trace .Println ("User DN: " , string (connRequest .UserDN ))
422+ utils .Trace .Printf ("User DN: %s " , string (connRequest .UserDN ))
423423 utils .Trace .Println ("Got Context, Doing ROPLogin" )
424424
425425 AuthSession .UserDN = connRequest .UserDN
@@ -2038,7 +2038,7 @@ func FastTransferFetchStep(handles []byte) ([]byte, error) {
20382038 pprops := RopFastTransferSourceGetBufferResponse {}
20392039 rops := []RopResponse {& pprops }
20402040 bufPtr , e := UnmarshalRops (execResponse .RopBuffer .Body , rops )
2041- utils .Trace .Printf ("Large transfer in progress. Status: %d " , pprops .TransferStatus )
2041+ utils .Trace .Printf ("Large transfer in progress. Status: %d" , pprops .TransferStatus )
20422042
20432043 if pprops .TransferStatus == 0x0001 {
20442044 buff , err := FastTransferFetchStep (execResponse .RopBuffer .Body [bufPtr :])
0 commit comments