-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
attrs => ["*", "+"]
);
$mesg->code && die $mesg->error;
$nums = $mesg->count;
print Dumper($mesg);
exit;
--
This works, but
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!
-
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
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
>>
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
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
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
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
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
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
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;
12 matches
Mail list logo