<div dir="ltr"><div dir="ltr"><div>Dear Toni,</div>Thank you so much for your time and effort. </div><div dir="ltr">I am very happy to see that the application is up and resume to normal performance. </div><div dir="ltr"><br></div><div dir="ltr"> One last thing, how to stop those spammers for creating nonactive users, I mean can we do something at the configuration level.<br></div><div dir="ltr"><div><br></div><div>Regards</div><div>Deb</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 11:24 AM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Dear Deb,<div><br></div><div>I´m very happy to hear it´s working! </div><div><br></div><div>In case somebody else is having problems that anonymous users cannot see layers this</div><div>is how it worked in the end:</div><div>_</div><div>Setup oauth correctly</div><div>_</div><div>double check rest role service (test with curl)</div><div>_</div><div>created expected admin users in geonode</div><div>_</div><div>removed a hugh amount of not active users (those might slow down the auth check!?)</div><div>_</div><div>double checked geofence rules</div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Toni</div><div><br></div><div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="overflow-wrap: break-word;"><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Tel <span class="gmail-m_4901622912119157210Apple-tab-span" style="white-space:pre-wrap">            </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="gmail-m_4901622912119157210Apple-tab-span" style="white-space:pre-wrap">          </span>+49/ (0) 341 24 04 739</div><div>Web<span class="gmail-m_4901622912119157210Apple-tab-span" style="white-space:pre-wrap">            </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 24.04.2019 um 11:16 schrieb Dev Gis <<a href="mailto:deviirmr@gmail.com" target="_blank">deviirmr@gmail.com</a>>:</div><br class="gmail-m_4901622912119157210Apple-interchange-newline"><div><div dir="ltr">Hi Toni,<div>Thank you for sharing the script.<br><div>Yes, I have some experience in Django development but not much aware of GeoNode classes.</div><div>But finally, I have managed to delete all spam user :).</div><div><br></div><div>Now the application is faster and better as you suggested to me in the last email. :)</div></div><div>Thank you so much for your effort and time.</div><div>Regards</div><div>Deb</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 11:07 AM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi deb,<div><br></div><div>As far as I know you cannot in django admin gui.</div><div>but you could list layers depening on your needs using the django shell</div><div>with something like:</div><div><br></div><div><div>$ Django-admin shell</div><div><br></div><div>from django.contrib.auth import get_user_model</div><div>User = get_user_model() </div><div>import datetime</div><div><br></div><div><b># show users which joined the last x days (120 in this example)</b></div><div><b># you could also switch this to show only users older than ...</b></div><div>active_staff_last_login = User.objects.filter(date_joined__lte=datetime.datetime.today(), date_joined__gt=datetime.datetime.today()-datetime.timedelta(days=120))</div><div><br></div><div>for username in active_staff_last_login:</div><div>    print str(username)+' joined: '+str(username.date_joined)</div></div><div><br></div><div><br></div><div>cheers,</div><div><br></div><div>Toni</div><div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Tel <span class="gmail-m_4901622912119157210gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">          </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="gmail-m_4901622912119157210gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">              </span>+49/ (0) 341 24 04 739</div><div>Web<span class="gmail-m_4901622912119157210gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">                </span><a href="http://csgis.de/" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 24.04.2019 um 10:31 schrieb Dev Gis <<a href="mailto:deviirmr@gmail.com" target="_blank">deviirmr@gmail.com</a>>:</div><br class="gmail-m_4901622912119157210gmail-m_-3023587919022960547Apple-interchange-newline"><div><div dir="ltr">Hi Toni,<div>You are right, after removing 50% spam user the performance is a bit improved.</div><div>I manage to delete 5000+ user based on the filter by keywords but rest 3000+ I am bit afraid to delete.</div><div>Could you suggest some mechanism so that I can filter based on the date before deleting those spam users?</div><div><br></div><div><br></div><div><span id="gmail-m_4901622912119157210gmail-m_-3023587919022960547cid:ii_juuyfy1c0"><image.png></span><br></div><div>  </div><div>Regards</div><div>Deb</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2019 at 10:21 PM Dev Gis <<a href="mailto:deviirmr@gmail.com" target="_blank">deviirmr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Thank you for the reply.</div><div dir="auto">I saw that suspicious users yesterday its almost 9000+ </div><div dir="auto">Yes tomorrow morning I will do the cleaning and get back to you.</div><div dir="auto">Regards </div><div dir="auto">Deb</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Apr 2019 at 9:49 PM, Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear Deb,<div><br></div><div>would it be possible for you to got through the list of Users and delete all not needed:</div><div><a href="http://geonode.iwlearn.org/admin/people/profile/" target="_blank">http://geonode.iwlearn.org/admin/people/profile/</a></div><div>Might be a lot created by spamers.</div><div><br></div><div>(I´ve recognized the user endpoint takes a bit long to resolve and like to see if things get</div><div>better after housecleaning)</div><div><br></div><div>Best regards,</div><div><br></div><div>Toni</div></div><div><div><br></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div><br></div></div></blockquote></div>