[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
syntax of ldap_modify_s
- To: openldap-software@openldap.org
- Subject: syntax of ldap_modify_s
- From: "Adrian St. John-Bee" <adebee@gmail.com>
- Date: Sun, 26 Apr 2009 13:31:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=d0wjLcayNo5+M2zvniKdmg83KOuiPbdFSyoAzSgGqHY=; b=YW8aiP4INFcVhAVubyqCvOeYZvt7YemBKYqC9NiDjAt2/vxJYXASUUYTeR9WmJHGMQ N8ZfQ+4z337piikctfN2CPX4Z2XnIODzY8KA+d09p/cuZYQz+aSQuIdFbo0Ke9xonP41 X+FYYypJqR5YXIhKSLuYErwJCMdMU4AgDgnBc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=j4tKH/QLQhYwZWLLbWBd9Yi3KvWuZb0QlXTj7myFh9d/nh901db6saxQ65Hvqp4Yzp GV6c04aB9IkVeENWnHRp1TU0XxPkl/tDNeFEJQmcO/qIO5rbjoqAFUErw60s1HTrXn5k /zPHwtBtjFJnLN5nvEcDjqfERLHPOuP3cCQIo=
Hi,
I am attempting to make an ldap_modify_s from an Objective C
application running on a mac. When I attempt to make a test
modification I get the error EXC_BAD_ACCESS which generally means that
a variable has gone out of scope. However, I do not see how any of the
variable involved could have fallen out of scope, so I'm not sure my
mod syntax is correct...
LDAP *ld;
ld = ldap_init(host, PORTNUMBER);
char *user = NULL;
char *pass = NULL;
int rc;
rc = ldap_simple_bind_s( ld, user, pass );
LDAPMod *modM;
char *dn = "uflEduUniversityId=28833300,ou=People,dc=ufl,dc=edu";
char** vals0;
modM->mod_op = LDAP_MOD_REPLACE;
modM->mod_type = "mail";
vals0[0] = "eric@ntu.ac.uk";
modM->mod_values = vals0;
int i = ldap_modify_s(ld, dn, modM);
Host and port number are defined earlier in the script.
I know that I'm trying to do a modification with a null bind, but I
would expect to see Invalid Credentials rather than an access error...
Does the syntax of this modification look like it 'should' work?
Many thanks,
Ade
--
Ade St John-Bee
Year Three Software Engineering BSc
N0115889
Mobile: +44 7736 301614