diff --git a/README.md b/README.md index a72cd0b38a2f2ee84139a218064c91e8b376085e..f93855be828e2e0aa308cc4c0dabfb3ae7971417 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ DNS Test : Ip resolution from Host > If you want a GUI LDAP client, get the free LDAP Browser 4.5 (not the paid administrator version). ```powershell -$LDAP_PROTOCOL="ldap" # or ldaps -$LDAP_HOST= # ex: ldap.domain.tld -$LDAP_PORT="389" # default : 389 (LDAP), 636 (LDAPS) +$LDAP_PROTOCOL="ldap" # or ldaps +$LDAP_HOST= # ex: ldap.domain.tld +$LDAP_PORT="389" # default : 389 (LDAP), 636 (LDAPS) $LDAP_URL=$LDAP_PROTOCOL://$LDAP_HOST:$LDAP_PORT $LDAP_USERS_BASE= $LDAP_BIND_FORMAT= @@ -76,7 +76,7 @@ $LDAP_USER_DN= $LDAP_FILTER= -$LDAP_ATTR="*" # * for "For all attributs", ex: givenName, sn, mail, uid +$LDAP_ATTR="*" # * for "For all attributs", ex: givenName, sn, mail, uid ``` Check user exist : @@ -111,8 +111,22 @@ Get-ADGroupMember $GROUP_NAME | select name,distinguishedname ## Client SMTP SMTP Parameters -SMTP Test with Mail command -SMTP Testing with Telnet + +``` +$SMTP_HOST="smtp.domain.com" # default +$SMTP_PORT="25" # default port 25 not secure, and 587 for encrypted (secure)serveur +# $SMTP_USERNAME= # optional +# $SMTP_PASSWORD= # optional + +SMTP_SUBJECT="Test Subject" +SMTP_BODY="Test Body" +SMTP_RECIPIENT="recipient@domain.com" # Example +# SMTP_FROM="sender@domain.com" # Optional, don't add this if your server are not trusted by the recipient smtp server. + + +Send-MailMessage -SmtpServer $SMTP_HOST -Port $SMTP_PORT -To $SMTP_RECIPIENT -Subject $SMTP_SUBJECT -Body $SMTP_BODY + +```