<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">* Yasser Afifi <<a href="mailto:yasser@3dissue.com">yasser@3dissue.com</a>> [2016-02-04 11:39]:<br>
> But since it is not a good idea to store plain passwords, i want to add<br>
> another column for a password salt. every user will have a randomly<br>
> generated salt attached to his password for added security.<br>
<br>
Whatever SQL statements you're writing to perform the authentication,<br>
that's where you'd add the salting. Here's a full example of how to<br>
do that using MySQL, from the SimpleSAMLphp documentation:<br>
<a href="https://github.com/simplesamlphp/simplesamlphp/blob/master/modules/sqlauth/docs/sql.txt" rel="noreferrer" target="_blank">https://github.com/simplesamlphp/simplesamlphp/blob/master/modules/sqlauth/docs/sql.txt</a><br>
-peter<br>
<br></blockquote><div><br></div><div>Thanks a lot peter, that's very helpful</div><div><br></div><div>I have another question about using a custom jsp login page. I previously asked about this and i was advised not to use jsp and just keep the velocity login page. What is the reason for this? why is it preferable to keep the velocity login and not use a custom jsp?</div><div><br></div><div>Another question is if i want to go with the jsp option, where should i post the login form?</div><div>this is a very simple jsp login form that i am using: </div><div> <br></div><div><div>   <form method="post" action="<b>??????</b>"></div><div>            <center></div><div>            <table border="1" width="30%" cellpadding="3"></div><div>                <thead></div><div>                    <tr></div><div>                        <th colspan="2">Login Here</th></div><div>                    </tr></div><div>                </thead></div><div>                <tbody></div><div>                    <tr></div><div>                        <td>User Name</td></div><div>                        <td><input type="text" name="j_username" value="" /></td></div><div>                    </tr></div><div>                    <tr></div><div>                        <td>Password</td></div><div>                        <td><input type="password" name="j_password" value="" /></td></div><div>                    </tr></div></div><div><br></div><div><br></div><div><div>So what should be inserted in action?</div></div><div>I tried posting it to this url below ( this was a wild guess) but it didn't work:</div><div><a href="https://localhost.com:8443/idp/profile/SAML2/POST/SSO">https://localhost.com:8443/idp/profile/SAML2/POST/SSO</a><br></div><div><br></div><div><br></div><div><br></div><div>Is there anything else missing from the form before posting it?</div><div><br></div><div>Thanks a million</div><div>Kind Regards,</div><div>Yasser</div></div></div></div>