Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using Net::LDAP to talk to Active Directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Aug 12, 2005 2:41 pm    Post subject: Using Net::LDAP to talk to Active Directory Reply with quote

In a mixed environment with windows and linux, i need to read the AD and get a list of printers and groups a particular linux workstation is a member of, sort of like a logon script typically used on a windows workstation.

I think this can be done with net::ldap but can not find examples, who's used this before ?

The attributes i get with a normal ldapsearch are not sufficient.


Last edited by fvant on Thu Aug 25, 2005 12:29 pm; edited 2 times in total
Back to top
View user's profile Send private message
Sparrow_CA
n00b
n00b


Joined: 27 Sep 2004
Posts: 31
Location: Alberta, CA

PostPosted: Fri Aug 12, 2005 4:20 pm    Post subject: language? Reply with quote

You mean in Perl, right?
What attributes are you looking for? Have you looked at the Samba 'net' command?
_________________
Turner: You didn't beat me. You ignored the rules of engagement. In a fair fight, I'd kill you.
Sparrow: That's not much incentive for me to fight fair, then, is it?
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Aug 12, 2005 5:05 pm    Post subject: Reply with quote

i am looking for e.g. list of printers, which groups and OU am i a member of, which group policies are applicable to me/my OU
Back to top
View user's profile Send private message
Sparrow_CA
n00b
n00b


Joined: 27 Sep 2004
Posts: 31
Location: Alberta, CA

PostPosted: Fri Aug 12, 2005 6:36 pm    Post subject: group policy Reply with quote

I've never used Net::LDAP, sorry.
Perhaps I can help you use ldapsearch though?
Is group policy stored as an LDAP entery?
_________________
Turner: You didn't beat me. You ignored the rules of engagement. In a fair fight, I'd kill you.
Sparrow: That's not much incentive for me to fight fair, then, is it?
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Aug 12, 2005 7:45 pm    Post subject: Reply with quote

like i said, ldapsearch doesn't get me what i want :(
Back to top
View user's profile Send private message
Sparrow_CA
n00b
n00b


Joined: 27 Sep 2004
Posts: 31
Location: Alberta, CA

PostPosted: Fri Aug 12, 2005 7:47 pm    Post subject: meta data? Reply with quote

What does it not get that Net::LDAP does? (curious)
_________________
Turner: You didn't beat me. You ignored the rules of engagement. In a fair fight, I'd kill you.
Sparrow: That's not much incentive for me to fight fair, then, is it?
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Thu Aug 25, 2005 12:28 pm    Post subject: Reply with quote

The big and very important difference is the paged results..Ad will not return more than a configured numer of results, typically 1000. If in my case i expect 22000 result i only get 1000 and an error.

Using net::ldap and the pagedcontrol i get all 22000 in chunks of 1000 (or whatever i request but smaller than the max. defined in AD).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum