Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Adding users to Netdisco via script for database
      (Oliver Gorwits)
   2. Re: Adding users to Netdisco via script for database
      (Michael Dano)
--- Begin Message ---
Hi Gustaf and Michael

I guess we can combine the two ... load users into Netdisco's DB that are
preconfigured for LDAP access and for various user roles.

The best way right now is using direct SQL as we don't have an API endpoint
for this or a netdisco-do subcommand (action) written.

Something like:
https://nopaste.xyz/?050395c68956a89f#f6aop4tgtlX50FdT6XnReYhkkIhQXWqBUAjrCFcNqw0=

Change the true/false values to your taste.

hope that helps,

regards,
oliver.

On Thu, 24 Jan 2019 at 07:11, Ankarloo, Gustaf <[email protected]>
wrote:

> Why not use the LDAP integration?
>
> *https://github.com/netdisco/netdisco/wiki/Configuration#ldap
> <https://github.com/netdisco/netdisco/wiki/Configuration#ldap>*
>
>
>
>
> *Med vänlig hälsning Gustaf*
>
> *Gustaf Ankarloo *| Technical Specialist
>
> Dedicated Infrastructure Services South
>
> GIS Scandinavia | *CGI* Sweden
> Grafiska vägen 22, 400 20 Göteborg | Sweden
> T: +46 31 761 14 57| M: +46 705 67 14 57
> [email protected] | www.cgi.se <http://www.logica.se/>
>
> [image: Beskrivning: x10sctmp11]
>
>
> CONFIDENTIALITY NOTICE: Proprietary/Confidential Information belonging to
> CGI Group Inc. and its affiliates may be contained in this message. If you
> are not a recipient indicated or intended in this message (or responsible
> for delivery of this message to such person), or you think for any reason
> that this message may have been addressed to you in error, you may not use
> or copy or deliver this message to anyone else. In such case, you should
> destroy this message and are asked to notify the sender by reply e-mail.
>
>
>
> *From:* Michael Dano <[email protected]>
> *Sent:* Wednesday, 23 January, 2019 21:29
> *To:* [email protected]
> *Subject:* [Netdisco] Adding users to Netdisco via script for database
>
>
>
> We are attempting to come up with a way to automatically add and remove
> users on our Netdisco system. We currently have a script that will allow us
> to pull a list of users from our AD system and add them as users on our
> Ubuntu servers. We would like to modify this script to automatically add
> users into the netdisco database to give them access based one the AD
> groups they belong too. Our issue is we are not quite sure what tables we
> would need to add users in. We also want to know if the same table is the
> one that would give them user or admin access, since some IT users would
> need different levels access.
>
>
>
> Any assistance or direction on this would be greatly appreciated.
>
> *Mike Dano*
>
> *Infrastructure Administrator, *
>
> *Infrastructure Security & Support*
>
> Baker College System
>
> O: 810-766-4120| M: 810-650-0947
>
>
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
--- Begin Message ---
Gustaf and Oliver,

We currently do use the LDAP access settings to authenticate the users we
have added, As Oliver has stated our plan is to use that along with this
script to directly add/remove the users based on the AD groups they are a
member of.

We were not aware of any way to directly add the user to the database. With
the commands that Oliver shared it will allow us to script the addition of
users into the table and use the LDAP auth as we wanted.

I also assume that if we do a "DELETE FROM table WHERE condition;" this
should allow us to script the removal of accounts from the system for
automating account cleanup.

Thank you for your help and maintaining such a useful project.

Mike Dano
Infrastructure Administrator,
Infrastructure Security & Support
Baker College System
O: 810-766-4120| M: 810-650-0947



On Thu, Jan 24, 2019 at 8:29 AM Oliver Gorwits <[email protected]> wrote:

> Hi Gustaf and Michael
>
> I guess we can combine the two ... load users into Netdisco's DB that are
> preconfigured for LDAP access and for various user roles.
>
> The best way right now is using direct SQL as we don't have an API
> endpoint for this or a netdisco-do subcommand (action) written.
>
> Something like:
> https://nopaste.xyz/?050395c68956a89f#f6aop4tgtlX50FdT6XnReYhkkIhQXWqBUAjrCFcNqw0=
>
> Change the true/false values to your taste.
>
> hope that helps,
>
> regards,
> oliver.
>
> On Thu, 24 Jan 2019 at 07:11, Ankarloo, Gustaf <[email protected]>
> wrote:
>
>> Why not use the LDAP integration?
>>
>> *https://github.com/netdisco/netdisco/wiki/Configuration#ldap
>> <https://github.com/netdisco/netdisco/wiki/Configuration#ldap>*
>>
>>
>>
>>
>> *Med vänlig hälsning Gustaf*
>>
>> *Gustaf Ankarloo *| Technical Specialist
>>
>> Dedicated Infrastructure Services South
>>
>> GIS Scandinavia | *CGI* Sweden
>> Grafiska vägen 22, 400 20 Göteborg | Sweden
>> T: +46 31 761 14 57| M: +46 705 67 14 57
>> [email protected] | www.cgi.se <http://www.logica.se/>
>>
>> [image: Beskrivning: x10sctmp11]
>>
>>
>> CONFIDENTIALITY NOTICE: Proprietary/Confidential Information belonging to
>> CGI Group Inc. and its affiliates may be contained in this message. If you
>> are not a recipient indicated or intended in this message (or responsible
>> for delivery of this message to such person), or you think for any reason
>> that this message may have been addressed to you in error, you may not use
>> or copy or deliver this message to anyone else. In such case, you should
>> destroy this message and are asked to notify the sender by reply e-mail.
>>
>>
>>
>> *From:* Michael Dano <[email protected]>
>> *Sent:* Wednesday, 23 January, 2019 21:29
>> *To:* [email protected]
>> *Subject:* [Netdisco] Adding users to Netdisco via script for database
>>
>>
>>
>> We are attempting to come up with a way to automatically add and remove
>> users on our Netdisco system. We currently have a script that will allow us
>> to pull a list of users from our AD system and add them as users on our
>> Ubuntu servers. We would like to modify this script to automatically add
>> users into the netdisco database to give them access based one the AD
>> groups they belong too. Our issue is we are not quite sure what tables we
>> would need to add users in. We also want to know if the same table is the
>> one that would give them user or admin access, since some IT users would
>> need different levels access.
>>
>>
>>
>> Any assistance or direction on this would be greatly appreciated.
>>
>> *Mike Dano*
>>
>> *Infrastructure Administrator, *
>>
>> *Infrastructure Security & Support*
>>
>> Baker College System
>>
>> O: 810-766-4120| M: 810-650-0947
>>
>>
>> _______________________________________________
>> Netdisco mailing list
>> [email protected]
>> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
>

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to