Ad Widget

Collapse

Ldap problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alfiere
    Member
    • May 2008
    • 51

    #16
    Thanks Aly, I figured out in this answer

    A bit more of information please.. a line of sql for example?
    I'm always ready to rtfm, if available


    Thanks,
    Alf

    Comment

    • alfiere
      Member
      • May 2008
      • 51

      #17
      UP!


      Thanks,
      Alf

      Comment

      • lamont
        Member
        • Nov 2007
        • 89

        #18
        here's a script that i'm using to upload users into Zabbix 1.6.1

        it uses perl and DBIx::Class

        ZabbixDB::Schema.pm needs to be in your @INC path and needs to have:

        package ZabbixDB::Schema;
        use base qw/DBIx::Class::Schema::Loader/;

        __PACKAGE__->loader_options(
        debug => 0,
        );

        1;

        I've got an "abstraction layer" around LDAP users via a command line tool called serveradmin which calls my MySQL CMDB, so in get_enabled_users() and get_disabled_users() I call that tool to get a list of users -- you'll want to replace that either with pure perl calls to Net::LDAP, or use openldap and change the output munging...
        Attached Files

        Comment

        Working...