Huge numbers of Constant Redefined errors

2008-10-04 Thread Bruce Johnson
-90 lines Every time the ldap routine is created. The program works, but it's hard finding real errors in this flood. -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs

getting multi-valued attribute?

2009-12-18 Thread Bruce Johnson
attrs => ["*", "+"] ); $mesg->code && die $mesg->error; $nums = $mesg->count; print Dumper($mesg); exit; -- This works, but

Re: getting multi-valued attribute?

2009-12-19 Thread Bruce Johnson
On Dec 19, 2009, at 8:14 AM, Phil Lembo wrote: You have to call the attribute in an array context, like this @values = $entry->get_value('attributename'); where 'attributename', is the name of a multi-valued attribute, like 'telephonenumber'. Thanks! -

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Bruce Johnson
mes, as the hash that $valref points to foreach $attr (@attrnames){ #now cycle through each attribute $attrval = @$valref{$attr};# get a pointer to the value array for each attribute foreach $actval (@$attrval){# cycle through the array of values for each attri

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Bruce Johnson
On Sep 14, 2012, at 9:38 AM, Chris Ridd wrote: > > On 14 Sep 2012, at 16:46, Bruce Johnson wrote: > >> >> On Sep 14, 2012, at 12:13 AM, Chris Ridd wrote: >>> >>> By definition the values in a given stored LDAP attribute have to be all >>

Re: reset AD user password when account is expired

2014-11-21 Thread Bruce Johnson
omment: AcceptSecurityContext error, data 773, v1db1 There’s this thread at perlmonks that might help: <http://www.perlmonks.org/?node_id=751018> Shorter: You can’t do it with LDAP; you have to do it via Kerberos. -- Bruce Johnson University of Arizona College of Pharmacy Information Tech

Re: Hello | LDAP module installed but not working

2020-01-10 Thread Bruce Johnson
believe you append the search OU to the host when performing the LDAP object creation. At least I’ve never tried it that way... See: https://metacpan.org/pod/Net::LDAP -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs

Weird issue using AD objectGUID as search filter

2021-02-17 Thread Bruce Johnson
ter fir the LDAP search, I get the LDAP error “Bad Filter” but ONLY for those particular users. It works just fine for others. Could it be possible that somehow the binary object returned in the contains something like a control character that is doing something in perl-ldap or is this an AD LDAP issue? Has anyone ever run into something like this? -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs

Re: Weird issue using AD objectGUID as search filter

2021-02-17 Thread Bruce Johnson
On Feb 17, 2021, at 11:24 AM, Bruce Johnson mailto:john...@pharmacy.arizona.edu>> wrote: I've written two subroutines for getting sAMAccountName by objectGUID and vice versa; the main purpose is to manage a database table that stores the objectGUID as a Base64 encoded string. (the

Re: Weird issue using AD objectGUID as search filter

2021-02-19 Thread Bruce Johnson
udencode/decode cycle so I know it’s not a problem with that module. I can send along a number of objectGUID values (as either uuencoded binaries or the unpacked hex strings) that fail if it helps identify the problem. They represent about 10% of all our user accounts :-( -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs

Re: Weird issue using AD objectGUID as search filter

2021-02-19 Thread Bruce Johnson
his issue or anything about encoding binary objects in any special fashion. -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs

Re: Weird issue using AD objectGUID as search filter

2021-02-19 Thread Bruce Johnson
b="DC=Pharmacy,DC=Pharmacy,DC=Arizona,DC=EDU"; my $fi = "(objectGUID=$gu)"; my $at = ['sAMAccountName']; my $m=$aq->search(base=>$sb,filter=>$fi,attrs=>$at); if ($m->count > 0){ my $un=$m->entry(0)->get_value('sAMAccountName'); return $un;